@aws-sdk/client-sagemaker-featurestore-runtime 3.418.0 → 3.421.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/README.md +7 -10
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,22 +49,19 @@ using your favorite package manager:
|
|
|
49
49
|
|
|
50
50
|
The AWS SDK is modulized by clients and commands.
|
|
51
51
|
To send a request, you only need to import the `SageMakerFeatureStoreRuntimeClient` and
|
|
52
|
-
the commands you need, for example `
|
|
52
|
+
the commands you need, for example `GetRecordCommand`:
|
|
53
53
|
|
|
54
54
|
```js
|
|
55
55
|
// ES5 example
|
|
56
56
|
const {
|
|
57
57
|
SageMakerFeatureStoreRuntimeClient,
|
|
58
|
-
|
|
58
|
+
GetRecordCommand,
|
|
59
59
|
} = require("@aws-sdk/client-sagemaker-featurestore-runtime");
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
```ts
|
|
63
63
|
// ES6+ example
|
|
64
|
-
import {
|
|
65
|
-
SageMakerFeatureStoreRuntimeClient,
|
|
66
|
-
BatchGetRecordCommand,
|
|
67
|
-
} from "@aws-sdk/client-sagemaker-featurestore-runtime";
|
|
64
|
+
import { SageMakerFeatureStoreRuntimeClient, GetRecordCommand } from "@aws-sdk/client-sagemaker-featurestore-runtime";
|
|
68
65
|
```
|
|
69
66
|
|
|
70
67
|
### Usage
|
|
@@ -83,7 +80,7 @@ const client = new SageMakerFeatureStoreRuntimeClient({ region: "REGION" });
|
|
|
83
80
|
const params = {
|
|
84
81
|
/** input parameters */
|
|
85
82
|
};
|
|
86
|
-
const command = new
|
|
83
|
+
const command = new GetRecordCommand(params);
|
|
87
84
|
```
|
|
88
85
|
|
|
89
86
|
#### Async/await
|
|
@@ -162,7 +159,7 @@ const client = new AWS.SageMakerFeatureStoreRuntime({ region: "REGION" });
|
|
|
162
159
|
|
|
163
160
|
// async/await.
|
|
164
161
|
try {
|
|
165
|
-
const data = await client.
|
|
162
|
+
const data = await client.getRecord(params);
|
|
166
163
|
// process data.
|
|
167
164
|
} catch (error) {
|
|
168
165
|
// error handling.
|
|
@@ -170,7 +167,7 @@ try {
|
|
|
170
167
|
|
|
171
168
|
// Promises.
|
|
172
169
|
client
|
|
173
|
-
.
|
|
170
|
+
.getRecord(params)
|
|
174
171
|
.then((data) => {
|
|
175
172
|
// process data.
|
|
176
173
|
})
|
|
@@ -179,7 +176,7 @@ client
|
|
|
179
176
|
});
|
|
180
177
|
|
|
181
178
|
// callbacks.
|
|
182
|
-
client.
|
|
179
|
+
client.getRecord(params, (err, data) => {
|
|
183
180
|
// process err and data.
|
|
184
181
|
});
|
|
185
182
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-featurestore-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.421.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.421.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|