@aws-sdk/client-sagemaker-runtime 3.35.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/SageMakerRuntime.js +0 -4
  3. package/dist-cjs/SageMakerRuntimeClient.js +0 -9
  4. package/dist-cjs/commands/InvokeEndpointAsyncCommand.js +0 -41
  5. package/dist-cjs/commands/InvokeEndpointCommand.js +0 -44
  6. package/dist-cjs/commands/index.js +5 -0
  7. package/dist-cjs/endpoints.js +1 -2
  8. package/dist-cjs/index.js +3 -5
  9. package/dist-cjs/models/index.js +0 -1
  10. package/dist-cjs/models/models_0.js +0 -25
  11. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  12. package/dist-cjs/runtimeConfig.browser.js +1 -6
  13. package/dist-cjs/runtimeConfig.js +2 -7
  14. package/dist-cjs/runtimeConfig.native.js +0 -4
  15. package/dist-cjs/runtimeConfig.shared.js +0 -4
  16. package/dist-es/SageMakerRuntime.js +0 -1
  17. package/dist-es/SageMakerRuntimeClient.js +0 -1
  18. package/dist-es/commands/InvokeEndpointAsyncCommand.js +0 -1
  19. package/dist-es/commands/InvokeEndpointCommand.js +0 -1
  20. package/dist-es/commands/index.js +2 -0
  21. package/dist-es/endpoints.js +1 -2
  22. package/dist-es/index.js +3 -5
  23. package/dist-es/models/index.js +0 -1
  24. package/dist-es/models/models_0.js +0 -1
  25. package/dist-es/protocols/Aws_restJson1.js +0 -1
  26. package/dist-es/runtimeConfig.browser.js +1 -2
  27. package/dist-es/runtimeConfig.js +2 -3
  28. package/dist-es/runtimeConfig.native.js +0 -1
  29. package/dist-es/runtimeConfig.shared.js +0 -1
  30. package/dist-types/commands/index.d.ts +2 -0
  31. package/dist-types/index.d.ts +3 -4
  32. package/dist-types/ts3.4/SageMakerRuntime.d.ts +3 -44
  33. package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +24 -89
  34. package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +2 -36
  35. package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +2 -39
  36. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  37. package/dist-types/ts3.4/index.d.ts +3 -4
  38. package/dist-types/ts3.4/models/models_0.d.ts +37 -175
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  42. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  43. package/package.json +33 -30
  44. package/dist-cjs/SageMakerRuntime.js.map +0 -1
  45. package/dist-cjs/SageMakerRuntimeClient.js.map +0 -1
  46. package/dist-cjs/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  47. package/dist-cjs/commands/InvokeEndpointCommand.js.map +0 -1
  48. package/dist-cjs/endpoints.js.map +0 -1
  49. package/dist-cjs/index.js.map +0 -1
  50. package/dist-cjs/models/index.js.map +0 -1
  51. package/dist-cjs/models/models_0.js.map +0 -1
  52. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  53. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  54. package/dist-cjs/runtimeConfig.js.map +0 -1
  55. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  56. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  57. package/dist-es/SageMakerRuntime.js.map +0 -1
  58. package/dist-es/SageMakerRuntimeClient.js.map +0 -1
  59. package/dist-es/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  60. package/dist-es/commands/InvokeEndpointCommand.js.map +0 -1
  61. package/dist-es/endpoints.js.map +0 -1
  62. package/dist-es/index.js.map +0 -1
  63. package/dist-es/models/index.js.map +0 -1
  64. package/dist-es/models/models_0.js.map +0 -1
  65. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  66. package/dist-es/runtimeConfig.browser.js.map +0 -1
  67. package/dist-es/runtimeConfig.js.map +0 -1
  68. package/dist-es/runtimeConfig.native.js.map +0 -1
  69. package/dist-es/runtimeConfig.shared.js.map +0 -1
  70. package/jest.config.js +0 -4
  71. package/src/SageMakerRuntime.ts +0 -117
  72. package/src/SageMakerRuntimeClient.ts +0 -241
  73. package/src/commands/InvokeEndpointAsyncCommand.ts +0 -111
  74. package/src/commands/InvokeEndpointCommand.ts +0 -114
  75. package/src/endpoints.ts +0 -82
  76. package/src/index.ts +0 -5
  77. package/src/models/index.ts +0 -1
  78. package/src/models/models_0.ts +0 -311
  79. package/src/protocols/Aws_restJson1.ts +0 -419
  80. package/src/runtimeConfig.browser.ts +0 -41
  81. package/src/runtimeConfig.native.ts +0 -17
  82. package/src/runtimeConfig.shared.ts +0 -17
  83. package/src/runtimeConfig.ts +0 -46
  84. package/tsconfig.es.json +0 -10
  85. package/tsconfig.json +0 -33
  86. package/tsconfig.types.json +0 -9
@@ -2,54 +2,13 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
3
3
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
4
4
  import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
5
- /**
6
- * <p> The Amazon SageMaker runtime API. </p>
7
- */
5
+
8
6
  export declare class SageMakerRuntime extends SageMakerRuntimeClient {
9
- /**
10
- * <p>After you deploy a model into production using Amazon SageMaker hosting services, your
11
- * client applications use this API to get inferences from the model hosted at the
12
- * specified endpoint. </p>
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
- * additional headers. You should not rely on the behavior of headers outside those
16
- * enumerated in the request syntax. </p>
17
- * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
18
- * 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
19
- * Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
20
- * Reference</i>.</p>
21
- * <p>A customer's model containers must respond to requests within 60 seconds. The model
22
- * itself can have a maximum processing time of 60 seconds before responding to
23
- * invocations. If your model is going to take 50-60 seconds of processing time, the SDK
24
- * socket timeout should be set to be 70 seconds.</p>
25
- * <note>
26
- * <p>Endpoints are scoped to an individual account, and are not public. The URL does
27
- * not contain the account ID, but Amazon SageMaker determines the account ID from the
28
- * authentication token that is supplied by the caller.</p>
29
- * </note>
30
- */
7
+
31
8
  invokeEndpoint(args: InvokeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointCommandOutput>;
32
9
  invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
33
10
  invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
34
- /**
35
- * <p>After you deploy a model into production using Amazon SageMaker hosting services,
36
- * your client applications use this API to get inferences from the model hosted at
37
- * the specified endpoint in an asynchronous manner.</p>
38
- *
39
- * <p>Inference requests sent to this API are enqueued for asynchronous processing.
40
- * The processing of the inference request may or may not complete before the
41
- * you receive a response from this API. The response from this API will
42
- * not contain the result of the inference request but contain information
43
- * about where you can locate it.</p>
44
- *
45
- * <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
46
- * Amazon SageMaker might add additional headers. You should not rely on the behavior
47
- * of headers outside those enumerated in the request syntax.</p>
48
- *
49
- * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
50
- * Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
51
- * Reference</i>.</p>
52
- */
11
+
53
12
  invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
54
13
  invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
55
14
  invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
@@ -11,124 +11,59 @@ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./comma
11
11
  export declare type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
12
12
  export declare type ServiceOutputTypes = InvokeEndpointAsyncCommandOutput | InvokeEndpointCommandOutput;
13
13
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
14
- /**
15
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
16
- */
14
+
17
15
  requestHandler?: __HttpHandler;
18
- /**
19
- * A constructor for a class implementing the {@link __Hash} interface
20
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
21
- * @internal
22
- */
16
+
23
17
  sha256?: __HashConstructor;
24
- /**
25
- * The function that will be used to convert strings into HTTP endpoints.
26
- * @internal
27
- */
18
+
28
19
  urlParser?: __UrlParser;
29
- /**
30
- * A function that can calculate the length of a request body.
31
- * @internal
32
- */
20
+
33
21
  bodyLengthChecker?: (body: any) => number | undefined;
34
- /**
35
- * A function that converts a stream into an array of bytes.
36
- * @internal
37
- */
22
+
38
23
  streamCollector?: __StreamCollector;
39
- /**
40
- * The function that will be used to convert a base64-encoded string to a byte array.
41
- * @internal
42
- */
24
+
43
25
  base64Decoder?: __Decoder;
44
- /**
45
- * The function that will be used to convert binary data to a base64-encoded string.
46
- * @internal
47
- */
26
+
48
27
  base64Encoder?: __Encoder;
49
- /**
50
- * The function that will be used to convert a UTF8-encoded string to a byte array.
51
- * @internal
52
- */
28
+
53
29
  utf8Decoder?: __Decoder;
54
- /**
55
- * The function that will be used to convert binary data to a UTF-8 encoded string.
56
- * @internal
57
- */
30
+
58
31
  utf8Encoder?: __Encoder;
59
- /**
60
- * The runtime environment.
61
- * @internal
62
- */
32
+
63
33
  runtime?: string;
64
- /**
65
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
66
- * trait of an operation.
67
- */
34
+
68
35
  disableHostPrefix?: boolean;
69
- /**
70
- * Value for how many times a request will be made at most in case of retry.
71
- */
36
+
72
37
  maxAttempts?: number | __Provider<number>;
73
- /**
74
- * Specifies which retry algorithm to use.
75
- */
38
+
76
39
  retryMode?: string | __Provider<string>;
77
- /**
78
- * Optional logger for logging debug/info/warn/error.
79
- */
40
+
80
41
  logger?: __Logger;
81
- /**
82
- * Unique service identifier.
83
- * @internal
84
- */
42
+
85
43
  serviceId?: string;
86
- /**
87
- * The AWS region to which this client will send requests
88
- */
44
+
89
45
  region?: string | __Provider<string>;
90
- /**
91
- * Default credentials provider; Not available in browser runtime.
92
- * @internal
93
- */
46
+
94
47
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
95
- /**
96
- * Fetch related hostname, signing name or signing region with given region.
97
- * @internal
98
- */
48
+
99
49
  regionInfoProvider?: RegionInfoProvider;
100
- /**
101
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
102
- * @internal
103
- */
50
+
104
51
  defaultUserAgentProvider?: Provider<__UserAgent>;
105
52
  }
106
53
  declare type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
107
- /**
108
- * The configuration interface of SageMakerRuntimeClient class constructor that set the region, credentials and other options.
109
- */
54
+
110
55
  export interface SageMakerRuntimeClientConfig extends SageMakerRuntimeClientConfigType {
111
56
  }
112
57
  declare type SageMakerRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
113
- /**
114
- * The resolved configuration interface of SageMakerRuntimeClient class. This is resolved and normalized from the {@link SageMakerRuntimeClientConfig | constructor configuration interface}.
115
- */
58
+
116
59
  export interface SageMakerRuntimeClientResolvedConfig extends SageMakerRuntimeClientResolvedConfigType {
117
60
  }
118
- /**
119
- * <p> The Amazon SageMaker runtime API. </p>
120
- */
61
+
121
62
  export declare class SageMakerRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeClientResolvedConfig> {
122
- /**
123
- * The resolved configuration of SageMakerRuntimeClient class. This is resolved and normalized from the {@link SageMakerRuntimeClientConfig | constructor configuration interface}.
124
- */
63
+
125
64
  readonly config: SageMakerRuntimeClientResolvedConfig;
126
65
  constructor(configuration: SageMakerRuntimeClientConfig);
127
- /**
128
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
129
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
130
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
131
- */
66
+
132
67
  destroy(): void;
133
68
  }
134
69
  export {};
@@ -6,45 +6,11 @@ export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInpu
6
6
  }
7
7
  export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>After you deploy a model into production using Amazon SageMaker hosting services,
11
- * your client applications use this API to get inferences from the model hosted at
12
- * the specified endpoint in an asynchronous manner.</p>
13
- *
14
- * <p>Inference requests sent to this API are enqueued for asynchronous processing.
15
- * The processing of the inference request may or may not complete before the
16
- * you receive a response from this API. The response from this API will
17
- * not contain the result of the inference request but contain information
18
- * about where you can locate it.</p>
19
- *
20
- * <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
21
- * Amazon SageMaker might add additional headers. You should not rely on the behavior
22
- * of headers outside those enumerated in the request syntax.</p>
23
- *
24
- * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
25
- * Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
26
- * Reference</i>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { SageMakerRuntimeClient, InvokeEndpointAsyncCommand } from "@aws-sdk/client-sagemaker-runtime"; // ES Modules import
31
- * // const { SageMakerRuntimeClient, InvokeEndpointAsyncCommand } = require("@aws-sdk/client-sagemaker-runtime"); // CommonJS import
32
- * const client = new SageMakerRuntimeClient(config);
33
- * const command = new InvokeEndpointAsyncCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link InvokeEndpointAsyncCommandInput} for command's `input` shape.
38
- * @see {@link InvokeEndpointAsyncCommandOutput} for command's `response` shape.
39
- * @see {@link SageMakerRuntimeClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
9
+
42
10
  export declare class InvokeEndpointAsyncCommand extends $Command<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig> {
43
11
  readonly input: InvokeEndpointAsyncCommandInput;
44
12
  constructor(input: InvokeEndpointAsyncCommandInput);
45
- /**
46
- * @internal
47
- */
13
+
48
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
49
15
  private serialize;
50
16
  private deserialize;
@@ -6,48 +6,11 @@ export interface InvokeEndpointCommandInput extends InvokeEndpointInput {
6
6
  }
7
7
  export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>After you deploy a model into production using Amazon SageMaker hosting services, your
11
- * client applications use this API to get inferences from the model hosted at the
12
- * specified endpoint. </p>
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
- * additional headers. You should not rely on the behavior of headers outside those
16
- * enumerated in the request syntax. </p>
17
- * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
18
- * 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
19
- * Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
20
- * Reference</i>.</p>
21
- * <p>A customer's model containers must respond to requests within 60 seconds. The model
22
- * itself can have a maximum processing time of 60 seconds before responding to
23
- * invocations. If your model is going to take 50-60 seconds of processing time, the SDK
24
- * socket timeout should be set to be 70 seconds.</p>
25
- * <note>
26
- * <p>Endpoints are scoped to an individual account, and are not public. The URL does
27
- * not contain the account ID, but Amazon SageMaker determines the account ID from the
28
- * authentication token that is supplied by the caller.</p>
29
- * </note>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { SageMakerRuntimeClient, InvokeEndpointCommand } from "@aws-sdk/client-sagemaker-runtime"; // ES Modules import
34
- * // const { SageMakerRuntimeClient, InvokeEndpointCommand } = require("@aws-sdk/client-sagemaker-runtime"); // CommonJS import
35
- * const client = new SageMakerRuntimeClient(config);
36
- * const command = new InvokeEndpointCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link InvokeEndpointCommandInput} for command's `input` shape.
41
- * @see {@link InvokeEndpointCommandOutput} for command's `response` shape.
42
- * @see {@link SageMakerRuntimeClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
9
+
45
10
  export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
46
11
  readonly input: InvokeEndpointCommandInput;
47
12
  constructor(input: InvokeEndpointCommandInput);
48
- /**
49
- * @internal
50
- */
13
+
51
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
52
15
  private serialize;
53
16
  private deserialize;
@@ -0,0 +1,2 @@
1
+ export * from "./InvokeEndpointAsyncCommand";
2
+ export * from "./InvokeEndpointCommand";
@@ -1,5 +1,4 @@
1
- export * from "./SageMakerRuntimeClient";
2
1
  export * from "./SageMakerRuntime";
3
- export * from "./commands/InvokeEndpointCommand";
4
- export * from "./commands/InvokeEndpointAsyncCommand";
5
- export * from "./models/index";
2
+ export * from "./SageMakerRuntimeClient";
3
+ export * from "./commands";
4
+ export * from "./models";
@@ -1,253 +1,115 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p> An internal failure occurred. </p>
4
- */
2
+
5
3
  export interface InternalFailure extends __SmithyException, $MetadataBearer {
6
4
  name: "InternalFailure";
7
5
  $fault: "server";
8
6
  Message?: string;
9
7
  }
10
8
  export declare namespace InternalFailure {
11
- /**
12
- * @internal
13
- */
9
+
14
10
  const filterSensitiveLog: (obj: InternalFailure) => any;
15
11
  }
16
12
  export interface InvokeEndpointInput {
17
- /**
18
- * <p>The name of the endpoint that you specified when you created the endpoint using the
19
- * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API. </p>
20
- */
13
+
21
14
  EndpointName: string | undefined;
22
- /**
23
- * <p>Provides input data, in the format specified in the <code>ContentType</code>
24
- * request header. Amazon SageMaker passes all of the data in the body to the model. </p>
25
- * <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
26
- * Formats-Inference</a>.</p>
27
- */
15
+
28
16
  Body: Uint8Array | undefined;
29
- /**
30
- * <p>The MIME type of the input data in the request body.</p>
31
- */
17
+
32
18
  ContentType?: string;
33
- /**
34
- * <p>The desired MIME type of the inference in the response.</p>
35
- */
19
+
36
20
  Accept?: string;
37
- /**
38
- * <p>Provides additional information about a request for an inference submitted to a model
39
- * hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
40
- * forwarded verbatim. You could use this value, for example, to provide an ID that you can
41
- * use to track a request or to provide other metadata that a service endpoint was
42
- * programmed to process. The value must consist of no more than 1024 visible US-ASCII
43
- * characters as specified in <a href="https://tools.ietf.org/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value
44
- * Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
45
- * <p>The code in your model is responsible for setting or updating any custom attributes in
46
- * the response. If your code does not set this value in the response, an empty value is
47
- * returned. For example, if a custom attribute represents the trace ID, your model can
48
- * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
49
- * function.</p>
50
- *
51
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
52
- * SDK.</p>
53
- */
21
+
54
22
  CustomAttributes?: string;
55
- /**
56
- * <p>The model to request for inference when invoking a multi-model endpoint.</p>
57
- */
23
+
58
24
  TargetModel?: string;
59
- /**
60
- * <p>Specify the production variant to send the inference request to when invoking an
61
- * endpoint that is running two or more variants. Note that this parameter overrides the
62
- * default behavior for the endpoint, which is to distribute the invocation traffic based
63
- * on the variant weights.</p>
64
- * <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
65
- * production</a>
66
- * </p>
67
- */
25
+
68
26
  TargetVariant?: string;
69
- /**
70
- * <p>If the endpoint hosts multiple containers and is configured to use direct invocation,
71
- * this parameter specifies the host name of the container to invoke.</p>
72
- */
27
+
73
28
  TargetContainerHostname?: string;
74
- /**
75
- * <p>If you provide a value, it is added to the captured data when you enable data capture
76
- * on the endpoint. For information about data capture, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html">Capture
77
- * Data</a>.</p>
78
- */
29
+
79
30
  InferenceId?: string;
80
31
  }
81
32
  export declare namespace InvokeEndpointInput {
82
- /**
83
- * @internal
84
- */
33
+
85
34
  const filterSensitiveLog: (obj: InvokeEndpointInput) => any;
86
35
  }
87
36
  export interface InvokeEndpointOutput {
88
- /**
89
- * <p>Includes the inference provided by the model.</p>
90
- * <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
91
- * Formats-Inference</a>.</p>
92
- */
37
+
93
38
  Body: Uint8Array | undefined;
94
- /**
95
- * <p>The MIME type of the inference returned in the response body.</p>
96
- */
39
+
97
40
  ContentType?: string;
98
- /**
99
- * <p>Identifies the production variant that was invoked.</p>
100
- */
41
+
101
42
  InvokedProductionVariant?: string;
102
- /**
103
- * <p>Provides additional information in the response about the inference returned by a
104
- * model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
105
- * forwarded verbatim. You could use this value, for example, to return an ID received in
106
- * the <code>CustomAttributes</code> header of a request or other metadata that a service
107
- * endpoint was programmed to produce. The value must consist of no more than 1024 visible
108
- * US-ASCII characters as specified in <a href="https://tools.ietf.org/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value
109
- * Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). If the customer
110
- * wants the custom attribute returned, the model must set the custom attribute to be
111
- * included on the way back. </p>
112
- * <p>The code in your model is responsible for setting or updating any custom attributes in
113
- * the response. If your code does not set this value in the response, an empty value is
114
- * returned. For example, if a custom attribute represents the trace ID, your model can
115
- * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
116
- * function.</p>
117
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
118
- * SDK.</p>
119
- */
43
+
120
44
  CustomAttributes?: string;
121
45
  }
122
46
  export declare namespace InvokeEndpointOutput {
123
- /**
124
- * @internal
125
- */
47
+
126
48
  const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
127
49
  }
128
- /**
129
- * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
130
- * </p>
131
- */
50
+
132
51
  export interface ModelError extends __SmithyException, $MetadataBearer {
133
52
  name: "ModelError";
134
53
  $fault: "client";
135
54
  Message?: string;
136
- /**
137
- * <p> Original status code. </p>
138
- */
55
+
139
56
  OriginalStatusCode?: number;
140
- /**
141
- * <p> Original message. </p>
142
- */
57
+
143
58
  OriginalMessage?: string;
144
- /**
145
- * <p> The Amazon Resource Name (ARN) of the log stream. </p>
146
- */
59
+
147
60
  LogStreamArn?: string;
148
61
  }
149
62
  export declare namespace ModelError {
150
- /**
151
- * @internal
152
- */
63
+
153
64
  const filterSensitiveLog: (obj: ModelError) => any;
154
65
  }
155
- /**
156
- * <p> The service is unavailable. Try your call again. </p>
157
- */
66
+
158
67
  export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
159
68
  name: "ServiceUnavailable";
160
69
  $fault: "server";
161
70
  Message?: string;
162
71
  }
163
72
  export declare namespace ServiceUnavailable {
164
- /**
165
- * @internal
166
- */
73
+
167
74
  const filterSensitiveLog: (obj: ServiceUnavailable) => any;
168
75
  }
169
- /**
170
- * <p> Inspect your request and try again. </p>
171
- */
76
+
172
77
  export interface ValidationError extends __SmithyException, $MetadataBearer {
173
78
  name: "ValidationError";
174
79
  $fault: "client";
175
80
  Message?: string;
176
81
  }
177
82
  export declare namespace ValidationError {
178
- /**
179
- * @internal
180
- */
83
+
181
84
  const filterSensitiveLog: (obj: ValidationError) => any;
182
85
  }
183
86
  export interface InvokeEndpointAsyncInput {
184
- /**
185
- * <p>The name of the endpoint that you specified when you created the endpoint using
186
- * the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html">
187
- * <code>CreateEndpoint</code>
188
- * </a> API.</p>
189
- */
87
+
190
88
  EndpointName: string | undefined;
191
- /**
192
- * <p>The MIME type of the input data in the request body.</p>
193
- */
89
+
194
90
  ContentType?: string;
195
- /**
196
- * <p>The desired MIME type of the inference in the response.</p>
197
- */
91
+
198
92
  Accept?: string;
199
- /**
200
- * <p>Provides additional information about a request for an inference submitted to
201
- * a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
202
- * forwarded verbatim. You could use this value, for example, to provide an ID that you
203
- * can use to track a request or to provide other metadata that a service endpoint was
204
- * programmed to process. The value must consist of no more than 1024
205
- * visible US-ASCII characters as specified in
206
- * <a href="https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6">Section 3.3.6.
207
- * Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
208
- *
209
- * <p>The code in your model is responsible for setting or updating any custom attributes
210
- * in the response. If your code does not set this value in the response, an empty
211
- * value is returned. For example, if a custom attribute represents the trace ID,
212
- * your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p>
213
- *
214
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. </p>
215
- */
93
+
216
94
  CustomAttributes?: string;
217
- /**
218
- * <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you
219
- * if none is specified. </p>
220
- */
95
+
221
96
  InferenceId?: string;
222
- /**
223
- * <p>The Amazon S3 URI where the inference request payload is stored.</p>
224
- */
97
+
225
98
  InputLocation: string | undefined;
226
- /**
227
- * <p>Maximum age in seconds a request can be in the queue before it is marked as expired.</p>
228
- */
99
+
229
100
  RequestTTLSeconds?: number;
230
101
  }
231
102
  export declare namespace InvokeEndpointAsyncInput {
232
- /**
233
- * @internal
234
- */
103
+
235
104
  const filterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
236
105
  }
237
106
  export interface InvokeEndpointAsyncOutput {
238
- /**
239
- * <p>Identifier for an inference request. This will be the same as the <code>InferenceId</code> specified
240
- * in the input. Amazon SageMaker will generate an identifier for you if you do not specify one.</p>
241
- */
107
+
242
108
  InferenceId?: string;
243
- /**
244
- * <p>The Amazon S3 URI where the inference response payload is stored.</p>
245
- */
109
+
246
110
  OutputLocation?: string;
247
111
  }
248
112
  export declare namespace InvokeEndpointAsyncOutput {
249
- /**
250
- * @internal
251
- */
113
+
252
114
  const filterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
253
115
  }
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,8 +1,6 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,7 +1,5 @@
1
1
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;