@aws-sdk/client-sagemaker-runtime 3.34.0 → 3.37.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 (106) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SageMakerRuntime.js +1 -5
  3. package/{dist/cjs → dist-cjs}/SageMakerRuntimeClient.js +8 -17
  4. package/dist-cjs/commands/InvokeEndpointAsyncCommand.js +36 -0
  5. package/dist-cjs/commands/InvokeEndpointCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  7. package/{dist/cjs → dist-cjs}/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -25
  10. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  15. package/{dist/es → dist-es}/SageMakerRuntime.js +1 -2
  16. package/{dist/es → dist-es}/SageMakerRuntimeClient.js +1 -2
  17. package/{dist/es → dist-es}/commands/InvokeEndpointAsyncCommand.js +2 -3
  18. package/{dist/es → dist-es}/commands/InvokeEndpointCommand.js +2 -3
  19. package/{dist/es → dist-es}/endpoints.js +1 -2
  20. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  21. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  22. package/{dist/es → dist-es}/models/models_0.js +0 -1
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  28. package/{dist/types → dist-types}/SageMakerRuntime.d.ts +2 -2
  29. package/{dist/types → dist-types}/SageMakerRuntimeClient.d.ts +3 -3
  30. package/{dist/types → dist-types}/commands/InvokeEndpointAsyncCommand.d.ts +3 -3
  31. package/{dist/types → dist-types}/commands/InvokeEndpointCommand.d.ts +3 -3
  32. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  33. package/{index.ts → dist-types/index.d.ts} +0 -0
  34. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  35. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  36. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  37. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  38. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  39. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  40. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  41. package/dist-types/ts3.4/SageMakerRuntime.d.ts +15 -0
  42. package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +69 -0
  43. package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +17 -0
  45. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  46. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +115 -0
  49. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  50. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  51. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  52. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  53. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  54. package/package.json +45 -42
  55. package/SageMakerRuntime.ts +0 -116
  56. package/SageMakerRuntimeClient.ts +0 -240
  57. package/commands/InvokeEndpointAsyncCommand.ts +0 -110
  58. package/commands/InvokeEndpointCommand.ts +0 -113
  59. package/dist/cjs/SageMakerRuntime.js.map +0 -1
  60. package/dist/cjs/SageMakerRuntimeClient.js.map +0 -1
  61. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js +0 -77
  62. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  63. package/dist/cjs/commands/InvokeEndpointCommand.js +0 -80
  64. package/dist/cjs/commands/InvokeEndpointCommand.js.map +0 -1
  65. package/dist/cjs/endpoints.js.map +0 -1
  66. package/dist/cjs/index.js.map +0 -1
  67. package/dist/cjs/models/index.js.map +0 -1
  68. package/dist/cjs/models/models_0.js.map +0 -1
  69. package/dist/cjs/package.json +0 -91
  70. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  71. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  72. package/dist/cjs/runtimeConfig.js.map +0 -1
  73. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  74. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  75. package/dist/es/SageMakerRuntime.js.map +0 -1
  76. package/dist/es/SageMakerRuntimeClient.js.map +0 -1
  77. package/dist/es/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  78. package/dist/es/commands/InvokeEndpointCommand.js.map +0 -1
  79. package/dist/es/endpoints.js.map +0 -1
  80. package/dist/es/index.js +0 -6
  81. package/dist/es/index.js.map +0 -1
  82. package/dist/es/models/index.js +0 -2
  83. package/dist/es/models/index.js.map +0 -1
  84. package/dist/es/models/models_0.js.map +0 -1
  85. package/dist/es/package.json +0 -91
  86. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  87. package/dist/es/runtimeConfig.browser.js.map +0 -1
  88. package/dist/es/runtimeConfig.js.map +0 -1
  89. package/dist/es/runtimeConfig.native.js.map +0 -1
  90. package/dist/es/runtimeConfig.shared.js.map +0 -1
  91. package/dist/types/ts3.4/SageMakerRuntime.d.ts +0 -56
  92. package/dist/types/ts3.4/SageMakerRuntimeClient.d.ts +0 -134
  93. package/dist/types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +0 -51
  94. package/dist/types/ts3.4/commands/InvokeEndpointCommand.d.ts +0 -54
  95. package/dist/types/ts3.4/models/models_0.d.ts +0 -253
  96. package/endpoints.ts +0 -82
  97. package/jest.config.js +0 -4
  98. package/models/models_0.ts +0 -311
  99. package/protocols/Aws_restJson1.ts +0 -418
  100. package/runtimeConfig.browser.ts +0 -40
  101. package/runtimeConfig.native.ts +0 -16
  102. package/runtimeConfig.shared.ts +0 -16
  103. package/runtimeConfig.ts +0 -45
  104. package/tsconfig.es.json +0 -10
  105. package/tsconfig.json +0 -31
  106. package/tsconfig.types.json +0 -8
@@ -1,54 +0,0 @@
1
- import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
2
- import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface InvokeEndpointCommandInput extends InvokeEndpointInput {
6
- }
7
- export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __MetadataBearer {
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
- */
45
- export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
46
- readonly input: InvokeEndpointCommandInput;
47
- constructor(input: InvokeEndpointCommandInput);
48
- /**
49
- * @internal
50
- */
51
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
52
- private serialize;
53
- private deserialize;
54
- }
@@ -1,253 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p> An internal failure occurred. </p>
4
- */
5
- export interface InternalFailure extends __SmithyException, $MetadataBearer {
6
- name: "InternalFailure";
7
- $fault: "server";
8
- Message?: string;
9
- }
10
- export declare namespace InternalFailure {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: InternalFailure) => any;
15
- }
16
- 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
- */
21
- 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
- */
28
- Body: Uint8Array | undefined;
29
- /**
30
- * <p>The MIME type of the input data in the request body.</p>
31
- */
32
- ContentType?: string;
33
- /**
34
- * <p>The desired MIME type of the inference in the response.</p>
35
- */
36
- 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
- */
54
- CustomAttributes?: string;
55
- /**
56
- * <p>The model to request for inference when invoking a multi-model endpoint.</p>
57
- */
58
- 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
- */
68
- 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
- */
73
- 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
- */
79
- InferenceId?: string;
80
- }
81
- export declare namespace InvokeEndpointInput {
82
- /**
83
- * @internal
84
- */
85
- const filterSensitiveLog: (obj: InvokeEndpointInput) => any;
86
- }
87
- 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
- */
93
- Body: Uint8Array | undefined;
94
- /**
95
- * <p>The MIME type of the inference returned in the response body.</p>
96
- */
97
- ContentType?: string;
98
- /**
99
- * <p>Identifies the production variant that was invoked.</p>
100
- */
101
- 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
- */
120
- CustomAttributes?: string;
121
- }
122
- export declare namespace InvokeEndpointOutput {
123
- /**
124
- * @internal
125
- */
126
- const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
127
- }
128
- /**
129
- * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
130
- * </p>
131
- */
132
- export interface ModelError extends __SmithyException, $MetadataBearer {
133
- name: "ModelError";
134
- $fault: "client";
135
- Message?: string;
136
- /**
137
- * <p> Original status code. </p>
138
- */
139
- OriginalStatusCode?: number;
140
- /**
141
- * <p> Original message. </p>
142
- */
143
- OriginalMessage?: string;
144
- /**
145
- * <p> The Amazon Resource Name (ARN) of the log stream. </p>
146
- */
147
- LogStreamArn?: string;
148
- }
149
- export declare namespace ModelError {
150
- /**
151
- * @internal
152
- */
153
- const filterSensitiveLog: (obj: ModelError) => any;
154
- }
155
- /**
156
- * <p> The service is unavailable. Try your call again. </p>
157
- */
158
- export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
159
- name: "ServiceUnavailable";
160
- $fault: "server";
161
- Message?: string;
162
- }
163
- export declare namespace ServiceUnavailable {
164
- /**
165
- * @internal
166
- */
167
- const filterSensitiveLog: (obj: ServiceUnavailable) => any;
168
- }
169
- /**
170
- * <p> Inspect your request and try again. </p>
171
- */
172
- export interface ValidationError extends __SmithyException, $MetadataBearer {
173
- name: "ValidationError";
174
- $fault: "client";
175
- Message?: string;
176
- }
177
- export declare namespace ValidationError {
178
- /**
179
- * @internal
180
- */
181
- const filterSensitiveLog: (obj: ValidationError) => any;
182
- }
183
- 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
- */
190
- EndpointName: string | undefined;
191
- /**
192
- * <p>The MIME type of the input data in the request body.</p>
193
- */
194
- ContentType?: string;
195
- /**
196
- * <p>The desired MIME type of the inference in the response.</p>
197
- */
198
- 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
- */
216
- 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
- */
221
- InferenceId?: string;
222
- /**
223
- * <p>The Amazon S3 URI where the inference request payload is stored.</p>
224
- */
225
- 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
- */
229
- RequestTTLSeconds?: number;
230
- }
231
- export declare namespace InvokeEndpointAsyncInput {
232
- /**
233
- * @internal
234
- */
235
- const filterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
236
- }
237
- 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
- */
242
- InferenceId?: string;
243
- /**
244
- * <p>The Amazon S3 URI where the inference response payload is stored.</p>
245
- */
246
- OutputLocation?: string;
247
- }
248
- export declare namespace InvokeEndpointAsyncOutput {
249
- /**
250
- * @internal
251
- */
252
- const filterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
253
- }
package/endpoints.ts DELETED
@@ -1,82 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "us-east-1-fips": {
6
- hostname: "runtime-fips.sagemaker.us-east-1.amazonaws.com",
7
- signingRegion: "us-east-1",
8
- },
9
- "us-east-2-fips": {
10
- hostname: "runtime-fips.sagemaker.us-east-2.amazonaws.com",
11
- signingRegion: "us-east-2",
12
- },
13
- "us-gov-west-1-fips": {
14
- hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com",
15
- signingRegion: "us-gov-west-1",
16
- },
17
- "us-west-1-fips": {
18
- hostname: "runtime-fips.sagemaker.us-west-1.amazonaws.com",
19
- signingRegion: "us-west-1",
20
- },
21
- "us-west-2-fips": {
22
- hostname: "runtime-fips.sagemaker.us-west-2.amazonaws.com",
23
- signingRegion: "us-west-2",
24
- },
25
- };
26
-
27
- const partitionHash: PartitionHash = {
28
- aws: {
29
- regions: [
30
- "af-south-1",
31
- "ap-east-1",
32
- "ap-northeast-1",
33
- "ap-northeast-2",
34
- "ap-northeast-3",
35
- "ap-south-1",
36
- "ap-southeast-1",
37
- "ap-southeast-2",
38
- "ca-central-1",
39
- "eu-central-1",
40
- "eu-north-1",
41
- "eu-south-1",
42
- "eu-west-1",
43
- "eu-west-2",
44
- "eu-west-3",
45
- "me-south-1",
46
- "sa-east-1",
47
- "us-east-1",
48
- "us-east-1-fips",
49
- "us-east-2",
50
- "us-east-2-fips",
51
- "us-west-1",
52
- "us-west-1-fips",
53
- "us-west-2",
54
- "us-west-2-fips",
55
- ],
56
- hostname: "runtime.sagemaker.{region}.amazonaws.com",
57
- },
58
- "aws-cn": {
59
- regions: ["cn-north-1", "cn-northwest-1"],
60
- hostname: "runtime.sagemaker.{region}.amazonaws.com.cn",
61
- },
62
- "aws-iso": {
63
- regions: ["us-iso-east-1"],
64
- hostname: "runtime.sagemaker.{region}.c2s.ic.gov",
65
- },
66
- "aws-iso-b": {
67
- regions: ["us-isob-east-1"],
68
- hostname: "runtime.sagemaker.{region}.sc2s.sgov.gov",
69
- },
70
- "aws-us-gov": {
71
- regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
72
- hostname: "runtime.sagemaker.{region}.amazonaws.com",
73
- },
74
- };
75
-
76
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
77
- getRegionInfo(region, {
78
- ...options,
79
- signingService: "sagemaker",
80
- regionHash,
81
- partitionHash,
82
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };