@aws-sdk/client-sagemaker-featurestore-runtime 3.315.0 → 3.319.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.
@@ -1,67 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SageMakerFeatureStoreRuntime = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BatchGetRecordCommand_1 = require("./commands/BatchGetRecordCommand");
5
6
  const DeleteRecordCommand_1 = require("./commands/DeleteRecordCommand");
6
7
  const GetRecordCommand_1 = require("./commands/GetRecordCommand");
7
8
  const PutRecordCommand_1 = require("./commands/PutRecordCommand");
8
9
  const SageMakerFeatureStoreRuntimeClient_1 = require("./SageMakerFeatureStoreRuntimeClient");
10
+ const commands = {
11
+ BatchGetRecordCommand: BatchGetRecordCommand_1.BatchGetRecordCommand,
12
+ DeleteRecordCommand: DeleteRecordCommand_1.DeleteRecordCommand,
13
+ GetRecordCommand: GetRecordCommand_1.GetRecordCommand,
14
+ PutRecordCommand: PutRecordCommand_1.PutRecordCommand,
15
+ };
9
16
  class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient_1.SageMakerFeatureStoreRuntimeClient {
10
- batchGetRecord(args, optionsOrCb, cb) {
11
- const command = new BatchGetRecordCommand_1.BatchGetRecordCommand(args);
12
- if (typeof optionsOrCb === "function") {
13
- this.send(command, optionsOrCb);
14
- }
15
- else if (typeof cb === "function") {
16
- if (typeof optionsOrCb !== "object")
17
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
- this.send(command, optionsOrCb || {}, cb);
19
- }
20
- else {
21
- return this.send(command, optionsOrCb);
22
- }
23
- }
24
- deleteRecord(args, optionsOrCb, cb) {
25
- const command = new DeleteRecordCommand_1.DeleteRecordCommand(args);
26
- if (typeof optionsOrCb === "function") {
27
- this.send(command, optionsOrCb);
28
- }
29
- else if (typeof cb === "function") {
30
- if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
- this.send(command, optionsOrCb || {}, cb);
33
- }
34
- else {
35
- return this.send(command, optionsOrCb);
36
- }
37
- }
38
- getRecord(args, optionsOrCb, cb) {
39
- const command = new GetRecordCommand_1.GetRecordCommand(args);
40
- if (typeof optionsOrCb === "function") {
41
- this.send(command, optionsOrCb);
42
- }
43
- else if (typeof cb === "function") {
44
- if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
- this.send(command, optionsOrCb || {}, cb);
47
- }
48
- else {
49
- return this.send(command, optionsOrCb);
50
- }
51
- }
52
- putRecord(args, optionsOrCb, cb) {
53
- const command = new PutRecordCommand_1.PutRecordCommand(args);
54
- if (typeof optionsOrCb === "function") {
55
- this.send(command, optionsOrCb);
56
- }
57
- else if (typeof cb === "function") {
58
- if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
- this.send(command, optionsOrCb || {}, cb);
61
- }
62
- else {
63
- return this.send(command, optionsOrCb);
64
- }
65
- }
66
17
  }
67
18
  exports.SageMakerFeatureStoreRuntime = SageMakerFeatureStoreRuntime;
19
+ (0, smithy_client_1.createAggregatedClient)(commands, SageMakerFeatureStoreRuntime);
@@ -1,63 +1,15 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { BatchGetRecordCommand, } from "./commands/BatchGetRecordCommand";
2
3
  import { DeleteRecordCommand, } from "./commands/DeleteRecordCommand";
3
4
  import { GetRecordCommand } from "./commands/GetRecordCommand";
4
5
  import { PutRecordCommand } from "./commands/PutRecordCommand";
5
- import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
6
+ import { SageMakerFeatureStoreRuntimeClient, } from "./SageMakerFeatureStoreRuntimeClient";
7
+ const commands = {
8
+ BatchGetRecordCommand,
9
+ DeleteRecordCommand,
10
+ GetRecordCommand,
11
+ PutRecordCommand,
12
+ };
6
13
  export class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient {
7
- batchGetRecord(args, optionsOrCb, cb) {
8
- const command = new BatchGetRecordCommand(args);
9
- if (typeof optionsOrCb === "function") {
10
- this.send(command, optionsOrCb);
11
- }
12
- else if (typeof cb === "function") {
13
- if (typeof optionsOrCb !== "object")
14
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
15
- this.send(command, optionsOrCb || {}, cb);
16
- }
17
- else {
18
- return this.send(command, optionsOrCb);
19
- }
20
- }
21
- deleteRecord(args, optionsOrCb, cb) {
22
- const command = new DeleteRecordCommand(args);
23
- if (typeof optionsOrCb === "function") {
24
- this.send(command, optionsOrCb);
25
- }
26
- else if (typeof cb === "function") {
27
- if (typeof optionsOrCb !== "object")
28
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
- this.send(command, optionsOrCb || {}, cb);
30
- }
31
- else {
32
- return this.send(command, optionsOrCb);
33
- }
34
- }
35
- getRecord(args, optionsOrCb, cb) {
36
- const command = new GetRecordCommand(args);
37
- if (typeof optionsOrCb === "function") {
38
- this.send(command, optionsOrCb);
39
- }
40
- else if (typeof cb === "function") {
41
- if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
- this.send(command, optionsOrCb || {}, cb);
44
- }
45
- else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
- putRecord(args, optionsOrCb, cb) {
50
- const command = new PutRecordCommand(args);
51
- if (typeof optionsOrCb === "function") {
52
- this.send(command, optionsOrCb);
53
- }
54
- else if (typeof cb === "function") {
55
- if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
- this.send(command, optionsOrCb || {}, cb);
58
- }
59
- else {
60
- return this.send(command, optionsOrCb);
61
- }
62
- }
63
14
  }
15
+ createAggregatedClient(commands, SageMakerFeatureStoreRuntime);
@@ -4,6 +4,32 @@ import { DeleteRecordCommandInput, DeleteRecordCommandOutput } from "./commands/
4
4
  import { GetRecordCommandInput, GetRecordCommandOutput } from "./commands/GetRecordCommand";
5
5
  import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
6
6
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
7
+ export interface SageMakerFeatureStoreRuntime {
8
+ /**
9
+ * @see {@link BatchGetRecordCommand}
10
+ */
11
+ batchGetRecord(args: BatchGetRecordCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetRecordCommandOutput>;
12
+ batchGetRecord(args: BatchGetRecordCommandInput, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
13
+ batchGetRecord(args: BatchGetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link DeleteRecordCommand}
16
+ */
17
+ deleteRecord(args: DeleteRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecordCommandOutput>;
18
+ deleteRecord(args: DeleteRecordCommandInput, cb: (err: any, data?: DeleteRecordCommandOutput) => void): void;
19
+ deleteRecord(args: DeleteRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRecordCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link GetRecordCommand}
22
+ */
23
+ getRecord(args: GetRecordCommandInput, options?: __HttpHandlerOptions): Promise<GetRecordCommandOutput>;
24
+ getRecord(args: GetRecordCommandInput, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
25
+ getRecord(args: GetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link PutRecordCommand}
28
+ */
29
+ putRecord(args: PutRecordCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordCommandOutput>;
30
+ putRecord(args: PutRecordCommandInput, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
31
+ putRecord(args: PutRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
32
+ }
7
33
  /**
8
34
  * @public
9
35
  * <p>Contains all data plane API operations and data types for the Amazon SageMaker Feature
@@ -34,64 +60,5 @@ import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRunti
34
60
  * </li>
35
61
  * </ul>
36
62
  */
37
- export declare class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient {
38
- /**
39
- * @public
40
- * <p>Retrieves a batch of <code>Records</code> from a <code>FeatureGroup</code>.</p>
41
- */
42
- batchGetRecord(args: BatchGetRecordCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetRecordCommandOutput>;
43
- batchGetRecord(args: BatchGetRecordCommandInput, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
44
- batchGetRecord(args: BatchGetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
45
- /**
46
- * @public
47
- * <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code> in the
48
- * <code>OnlineStore</code>. Feature Store supports both <code>SOFT_DELETE</code> and
49
- * <code>HARD_DELETE</code>. For <code>SOFT_DELETE</code> (default), feature columns are
50
- * set to <code>null</code> and the record is no longer retrievable by <code>GetRecord</code>
51
- * or <code>BatchGetRecord</code>. For<code> HARD_DELETE</code>, the complete
52
- * <code>Record</code> is removed from the <code>OnlineStore</code>. In both cases, Feature
53
- * Store appends the deleted record marker to the <code>OfflineStore</code> with feature
54
- * values set to <code>null</code>, <code>is_deleted</code> value set to <code>True</code>,
55
- * and <code>EventTime</code> set to the delete input <code>EventTime</code>.</p>
56
- * <p>Note that the <code>EventTime</code> specified in <code>DeleteRecord</code> should be
57
- * set later than the <code>EventTime</code> of the existing record in the
58
- * <code>OnlineStore</code> for that <code>RecordIdentifer</code>. If it is not, the
59
- * deletion does not occur:</p>
60
- * <ul>
61
- * <li>
62
- * <p>For <code>SOFT_DELETE</code>, the existing (undeleted) record remains in the
63
- * <code>OnlineStore</code>, though the delete record marker is still written to the
64
- * <code>OfflineStore</code>.</p>
65
- * </li>
66
- * <li>
67
- * <p>
68
- * <code>HARD_DELETE</code> returns <code>EventTime</code>: <code>400
69
- * ValidationException</code> to indicate that the delete operation failed. No delete
70
- * record marker is written to the <code>OfflineStore</code>.</p>
71
- * </li>
72
- * </ul>
73
- */
74
- deleteRecord(args: DeleteRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecordCommandOutput>;
75
- deleteRecord(args: DeleteRecordCommandInput, cb: (err: any, data?: DeleteRecordCommandOutput) => void): void;
76
- deleteRecord(args: DeleteRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRecordCommandOutput) => void): void;
77
- /**
78
- * @public
79
- * <p>Use for <code>OnlineStore</code> serving from a <code>FeatureStore</code>. Only the
80
- * latest records stored in the <code>OnlineStore</code> can be retrieved. If no Record with
81
- * <code>RecordIdentifierValue</code> is found, then an empty result is returned. </p>
82
- */
83
- getRecord(args: GetRecordCommandInput, options?: __HttpHandlerOptions): Promise<GetRecordCommandOutput>;
84
- getRecord(args: GetRecordCommandInput, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
85
- getRecord(args: GetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
86
- /**
87
- * @public
88
- * <p>Used for data ingestion into the <code>FeatureStore</code>. The <code>PutRecord</code>
89
- * API writes to both the <code>OnlineStore</code> and <code>OfflineStore</code>. If the
90
- * record is the latest record for the <code>recordIdentifier</code>, the record is written to
91
- * both the <code>OnlineStore</code> and <code>OfflineStore</code>. If the record is a
92
- * historic record, it is written only to the <code>OfflineStore</code>.</p>
93
- */
94
- putRecord(args: PutRecordCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordCommandOutput>;
95
- putRecord(args: PutRecordCommandInput, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
96
- putRecord(args: PutRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
63
+ export declare class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient implements SageMakerFeatureStoreRuntime {
97
64
  }
@@ -16,7 +16,7 @@ import {
16
16
  PutRecordCommandOutput,
17
17
  } from "./commands/PutRecordCommand";
18
18
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
19
- export declare class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient {
19
+ export interface SageMakerFeatureStoreRuntime {
20
20
  batchGetRecord(
21
21
  args: BatchGetRecordCommandInput,
22
22
  options?: __HttpHandlerOptions
@@ -70,3 +70,6 @@ export declare class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreR
70
70
  cb: (err: any, data?: PutRecordCommandOutput) => void
71
71
  ): void;
72
72
  }
73
+ export declare class SageMakerFeatureStoreRuntime
74
+ extends SageMakerFeatureStoreRuntimeClient
75
+ implements SageMakerFeatureStoreRuntime {}
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.315.0",
4
+ "version": "3.319.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,9 +21,9 @@
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.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",