@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/SageMakerRuntime.js +0 -4
- package/dist-cjs/SageMakerRuntimeClient.js +0 -9
- package/dist-cjs/commands/InvokeEndpointAsyncCommand.js +0 -41
- package/dist-cjs/commands/InvokeEndpointCommand.js +0 -44
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -5
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -25
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/SageMakerRuntime.js +0 -1
- package/dist-es/SageMakerRuntimeClient.js +0 -1
- package/dist-es/commands/InvokeEndpointAsyncCommand.js +0 -1
- package/dist-es/commands/InvokeEndpointCommand.js +0 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -5
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +3 -4
- package/dist-types/ts3.4/SageMakerRuntime.d.ts +3 -44
- package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +3 -4
- package/dist-types/ts3.4/models/models_0.d.ts +37 -175
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/SageMakerRuntime.js.map +0 -1
- package/dist-cjs/SageMakerRuntimeClient.js.map +0 -1
- package/dist-cjs/commands/InvokeEndpointAsyncCommand.js.map +0 -1
- package/dist-cjs/commands/InvokeEndpointCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/SageMakerRuntime.js.map +0 -1
- package/dist-es/SageMakerRuntimeClient.js.map +0 -1
- package/dist-es/commands/InvokeEndpointAsyncCommand.js.map +0 -1
- package/dist-es/commands/InvokeEndpointCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/SageMakerRuntime.ts +0 -117
- package/src/SageMakerRuntimeClient.ts +0 -241
- package/src/commands/InvokeEndpointAsyncCommand.ts +0 -111
- package/src/commands/InvokeEndpointCommand.ts +0 -114
- package/src/endpoints.ts +0 -82
- package/src/index.ts +0 -5
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -311
- package/src/protocols/Aws_restJson1.ts +0 -419
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
12
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
46
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
47
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
7
54
|
|
|
8
55
|
|
|
@@ -4,9 +4,6 @@ exports.SageMakerRuntime = void 0;
|
|
|
4
4
|
const InvokeEndpointAsyncCommand_1 = require("./commands/InvokeEndpointAsyncCommand");
|
|
5
5
|
const InvokeEndpointCommand_1 = require("./commands/InvokeEndpointCommand");
|
|
6
6
|
const SageMakerRuntimeClient_1 = require("./SageMakerRuntimeClient");
|
|
7
|
-
/**
|
|
8
|
-
* <p> The Amazon SageMaker runtime API. </p>
|
|
9
|
-
*/
|
|
10
7
|
class SageMakerRuntime extends SageMakerRuntimeClient_1.SageMakerRuntimeClient {
|
|
11
8
|
invokeEndpoint(args, optionsOrCb, cb) {
|
|
12
9
|
const command = new InvokeEndpointCommand_1.InvokeEndpointCommand(args);
|
|
@@ -38,4 +35,3 @@ class SageMakerRuntime extends SageMakerRuntimeClient_1.SageMakerRuntimeClient {
|
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
exports.SageMakerRuntime = SageMakerRuntime;
|
|
41
|
-
//# sourceMappingURL=SageMakerRuntime.js.map
|
|
@@ -10,9 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p> The Amazon SageMaker runtime API. </p>
|
|
15
|
-
*/
|
|
16
13
|
class SageMakerRuntimeClient extends smithy_client_1.Client {
|
|
17
14
|
constructor(configuration) {
|
|
18
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -31,14 +28,8 @@ class SageMakerRuntimeClient extends smithy_client_1.Client {
|
|
|
31
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
36
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
37
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
38
|
-
*/
|
|
39
31
|
destroy() {
|
|
40
32
|
super.destroy();
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
exports.SageMakerRuntimeClient = SageMakerRuntimeClient;
|
|
44
|
-
//# sourceMappingURL=SageMakerRuntimeClient.js.map
|
|
@@ -5,51 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>After you deploy a model into production using Amazon SageMaker hosting services,
|
|
10
|
-
* your client applications use this API to get inferences from the model hosted at
|
|
11
|
-
* the specified endpoint in an asynchronous manner.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>Inference requests sent to this API are enqueued for asynchronous processing.
|
|
14
|
-
* The processing of the inference request may or may not complete before the
|
|
15
|
-
* you receive a response from this API. The response from this API will
|
|
16
|
-
* not contain the result of the inference request but contain information
|
|
17
|
-
* about where you can locate it.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
|
|
20
|
-
* Amazon SageMaker might add additional headers. You should not rely on the behavior
|
|
21
|
-
* of headers outside those enumerated in the request syntax.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
|
|
24
|
-
* 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
|
|
25
|
-
* Reference</i>.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SageMakerRuntimeClient, InvokeEndpointAsyncCommand } from "@aws-sdk/client-sagemaker-runtime"; // ES Modules import
|
|
30
|
-
* // const { SageMakerRuntimeClient, InvokeEndpointAsyncCommand } = require("@aws-sdk/client-sagemaker-runtime"); // CommonJS import
|
|
31
|
-
* const client = new SageMakerRuntimeClient(config);
|
|
32
|
-
* const command = new InvokeEndpointAsyncCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link InvokeEndpointAsyncCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link InvokeEndpointAsyncCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SageMakerRuntimeClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
8
|
class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
|
|
42
|
-
// Start section: command_properties
|
|
43
|
-
// End section: command_properties
|
|
44
9
|
constructor(input) {
|
|
45
|
-
// Start section: command_constructor
|
|
46
10
|
super();
|
|
47
11
|
this.input = input;
|
|
48
|
-
// End section: command_constructor
|
|
49
12
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
54
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
55
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -74,4 +34,3 @@ class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
|
|
|
74
34
|
}
|
|
75
35
|
}
|
|
76
36
|
exports.InvokeEndpointAsyncCommand = InvokeEndpointAsyncCommand;
|
|
77
|
-
//# sourceMappingURL=InvokeEndpointAsyncCommand.js.map
|
|
@@ -5,54 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your
|
|
10
|
-
* client applications use this API to get inferences from the model hosted at the
|
|
11
|
-
* specified endpoint. </p>
|
|
12
|
-
* <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>
|
|
13
|
-
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
14
|
-
* additional headers. You should not rely on the behavior of headers outside those
|
|
15
|
-
* enumerated in the request syntax. </p>
|
|
16
|
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
|
|
17
|
-
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
18
|
-
* Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
|
|
19
|
-
* Reference</i>.</p>
|
|
20
|
-
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
21
|
-
* itself can have a maximum processing time of 60 seconds before responding to
|
|
22
|
-
* invocations. If your model is going to take 50-60 seconds of processing time, the SDK
|
|
23
|
-
* socket timeout should be set to be 70 seconds.</p>
|
|
24
|
-
* <note>
|
|
25
|
-
* <p>Endpoints are scoped to an individual account, and are not public. The URL does
|
|
26
|
-
* not contain the account ID, but Amazon SageMaker determines the account ID from the
|
|
27
|
-
* authentication token that is supplied by the caller.</p>
|
|
28
|
-
* </note>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { SageMakerRuntimeClient, InvokeEndpointCommand } from "@aws-sdk/client-sagemaker-runtime"; // ES Modules import
|
|
33
|
-
* // const { SageMakerRuntimeClient, InvokeEndpointCommand } = require("@aws-sdk/client-sagemaker-runtime"); // CommonJS import
|
|
34
|
-
* const client = new SageMakerRuntimeClient(config);
|
|
35
|
-
* const command = new InvokeEndpointCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link InvokeEndpointCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link InvokeEndpointCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link SageMakerRuntimeClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
8
|
class InvokeEndpointCommand extends smithy_client_1.Command {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
9
|
constructor(input) {
|
|
48
|
-
// Start section: command_constructor
|
|
49
10
|
super();
|
|
50
11
|
this.input = input;
|
|
51
|
-
// End section: command_constructor
|
|
52
12
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
57
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
58
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -77,4 +34,3 @@ class InvokeEndpointCommand extends smithy_client_1.Command {
|
|
|
77
34
|
}
|
|
78
35
|
}
|
|
79
36
|
exports.InvokeEndpointCommand = InvokeEndpointCommand;
|
|
80
|
-
//# sourceMappingURL=InvokeEndpointCommand.js.map
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -60,7 +60,7 @@ const partitionHash = {
|
|
|
60
60
|
hostname: "runtime.sagemaker.{region}.amazonaws.com.cn",
|
|
61
61
|
},
|
|
62
62
|
"aws-iso": {
|
|
63
|
-
regions: ["us-iso-east-1"],
|
|
63
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
64
64
|
hostname: "runtime.sagemaker.{region}.c2s.ic.gov",
|
|
65
65
|
},
|
|
66
66
|
"aws-iso-b": {
|
|
@@ -79,4 +79,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
79
79
|
partitionHash,
|
|
80
80
|
});
|
|
81
81
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
82
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./SageMakerRuntimeClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./SageMakerRuntime"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./models
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./SageMakerRuntimeClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -4,18 +4,12 @@ exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.V
|
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
var InternalFailure;
|
|
6
6
|
(function (InternalFailure) {
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
7
|
InternalFailure.filterSensitiveLog = (obj) => ({
|
|
11
8
|
...obj,
|
|
12
9
|
});
|
|
13
10
|
})(InternalFailure = exports.InternalFailure || (exports.InternalFailure = {}));
|
|
14
11
|
var InvokeEndpointInput;
|
|
15
12
|
(function (InvokeEndpointInput) {
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
13
|
InvokeEndpointInput.filterSensitiveLog = (obj) => ({
|
|
20
14
|
...obj,
|
|
21
15
|
...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -24,9 +18,6 @@ var InvokeEndpointInput;
|
|
|
24
18
|
})(InvokeEndpointInput = exports.InvokeEndpointInput || (exports.InvokeEndpointInput = {}));
|
|
25
19
|
var InvokeEndpointOutput;
|
|
26
20
|
(function (InvokeEndpointOutput) {
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
21
|
InvokeEndpointOutput.filterSensitiveLog = (obj) => ({
|
|
31
22
|
...obj,
|
|
32
23
|
...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -35,36 +26,24 @@ var InvokeEndpointOutput;
|
|
|
35
26
|
})(InvokeEndpointOutput = exports.InvokeEndpointOutput || (exports.InvokeEndpointOutput = {}));
|
|
36
27
|
var ModelError;
|
|
37
28
|
(function (ModelError) {
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
29
|
ModelError.filterSensitiveLog = (obj) => ({
|
|
42
30
|
...obj,
|
|
43
31
|
});
|
|
44
32
|
})(ModelError = exports.ModelError || (exports.ModelError = {}));
|
|
45
33
|
var ServiceUnavailable;
|
|
46
34
|
(function (ServiceUnavailable) {
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
35
|
ServiceUnavailable.filterSensitiveLog = (obj) => ({
|
|
51
36
|
...obj,
|
|
52
37
|
});
|
|
53
38
|
})(ServiceUnavailable = exports.ServiceUnavailable || (exports.ServiceUnavailable = {}));
|
|
54
39
|
var ValidationError;
|
|
55
40
|
(function (ValidationError) {
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
41
|
ValidationError.filterSensitiveLog = (obj) => ({
|
|
60
42
|
...obj,
|
|
61
43
|
});
|
|
62
44
|
})(ValidationError = exports.ValidationError || (exports.ValidationError = {}));
|
|
63
45
|
var InvokeEndpointAsyncInput;
|
|
64
46
|
(function (InvokeEndpointAsyncInput) {
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
47
|
InvokeEndpointAsyncInput.filterSensitiveLog = (obj) => ({
|
|
69
48
|
...obj,
|
|
70
49
|
...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -72,11 +51,7 @@ var InvokeEndpointAsyncInput;
|
|
|
72
51
|
})(InvokeEndpointAsyncInput = exports.InvokeEndpointAsyncInput || (exports.InvokeEndpointAsyncInput = {}));
|
|
73
52
|
var InvokeEndpointAsyncOutput;
|
|
74
53
|
(function (InvokeEndpointAsyncOutput) {
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
54
|
InvokeEndpointAsyncOutput.filterSensitiveLog = (obj) => ({
|
|
79
55
|
...obj,
|
|
80
56
|
});
|
|
81
57
|
})(InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncOutput || (exports.InvokeEndpointAsyncOutput = {}));
|
|
82
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -306,14 +306,12 @@ const deserializeMetadata = (output) => {
|
|
|
306
306
|
cfId: output.headers["x-amz-cf-id"],
|
|
307
307
|
});
|
|
308
308
|
};
|
|
309
|
-
// Collect low-level response body stream to Uint8Array.
|
|
310
309
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
311
310
|
if (streamBody instanceof Uint8Array) {
|
|
312
311
|
return Promise.resolve(streamBody);
|
|
313
312
|
}
|
|
314
313
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
315
314
|
};
|
|
316
|
-
// Encode Uint8Array data into string with utf-8.
|
|
317
315
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
318
316
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
319
317
|
value !== null &&
|
|
@@ -326,9 +324,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
326
324
|
}
|
|
327
325
|
return {};
|
|
328
326
|
});
|
|
329
|
-
/**
|
|
330
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
331
|
-
*/
|
|
332
327
|
const loadRestJsonErrorCode = (output, data) => {
|
|
333
328
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
334
329
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -353,4 +348,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
353
348
|
}
|
|
354
349
|
return "";
|
|
355
350
|
};
|
|
356
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
6
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
7
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
|
10
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
12
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
13
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
14
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
42
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
11
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
18
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
19
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
44
40
|
};
|
|
45
41
|
};
|
|
46
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
47
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
package/dist-es/endpoints.js
CHANGED
|
@@ -58,7 +58,7 @@ var partitionHash = {
|
|
|
58
58
|
hostname: "runtime.sagemaker.{region}.amazonaws.com.cn",
|
|
59
59
|
},
|
|
60
60
|
"aws-iso": {
|
|
61
|
-
regions: ["us-iso-east-1"],
|
|
61
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
62
62
|
hostname: "runtime.sagemaker.{region}.c2s.ic.gov",
|
|
63
63
|
},
|
|
64
64
|
"aws-iso-b": {
|
|
@@ -75,4 +75,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
|
|
|
75
75
|
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "sagemaker", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
76
76
|
});
|
|
77
77
|
}); };
|
|
78
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export * from "./SageMakerRuntimeClient";
|
|
2
1
|
export * from "./SageMakerRuntime";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./models
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./SageMakerRuntimeClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
package/dist-es/models/index.js
CHANGED
|
@@ -32,4 +32,3 @@ export var InvokeEndpointAsyncOutput;
|
|
|
32
32
|
(function (InvokeEndpointAsyncOutput) {
|
|
33
33
|
InvokeEndpointAsyncOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
34
34
|
})(InvokeEndpointAsyncOutput || (InvokeEndpointAsyncOutput = {}));
|
|
35
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
4
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
7
8
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
-
import packageInfo from "../package.json";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
12
|
export var getRuntimeConfig = function (config) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
9
|
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import packageInfo from "../package.json";
|
|
15
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
20
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
6
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
7
|
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from "./SageMakerRuntimeClient";
|
|
2
1
|
export * from "./SageMakerRuntime";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./models
|
|
2
|
+
export * from "./SageMakerRuntimeClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|