@aws-sdk/client-sagemaker-featurestore-runtime 3.901.0 → 3.906.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/dist-cjs/index.js +501 -621
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,652 +1,532 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "sagemaker",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessForbidden: () => AccessForbidden,
|
|
25
|
-
BatchGetRecordCommand: () => BatchGetRecordCommand,
|
|
26
|
-
DeleteRecordCommand: () => DeleteRecordCommand,
|
|
27
|
-
DeletionMode: () => DeletionMode,
|
|
28
|
-
ExpirationTimeResponse: () => ExpirationTimeResponse,
|
|
29
|
-
GetRecordCommand: () => GetRecordCommand,
|
|
30
|
-
InternalFailure: () => InternalFailure,
|
|
31
|
-
PutRecordCommand: () => PutRecordCommand,
|
|
32
|
-
ResourceNotFound: () => ResourceNotFound,
|
|
33
|
-
SageMakerFeatureStoreRuntime: () => SageMakerFeatureStoreRuntime,
|
|
34
|
-
SageMakerFeatureStoreRuntimeClient: () => SageMakerFeatureStoreRuntimeClient,
|
|
35
|
-
SageMakerFeatureStoreRuntimeServiceException: () => SageMakerFeatureStoreRuntimeServiceException,
|
|
36
|
-
ServiceUnavailable: () => ServiceUnavailable,
|
|
37
|
-
TargetStore: () => TargetStore,
|
|
38
|
-
TtlDurationUnit: () => TtlDurationUnit,
|
|
39
|
-
ValidationError: () => ValidationError,
|
|
40
|
-
__Client: () => import_smithy_client.Client
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(index_exports);
|
|
43
|
-
|
|
44
|
-
// src/SageMakerFeatureStoreRuntimeClient.ts
|
|
45
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
46
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
47
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
48
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
49
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
50
|
-
var import_core = require("@smithy/core");
|
|
51
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
52
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
53
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
54
|
-
|
|
55
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
56
33
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
70
71
|
};
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
78
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
79
|
+
class SageMakerFeatureStoreRuntimeClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSageMakerFeatureStoreRuntimeHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
107
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
114
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
115
|
-
credentials: config.credentials()
|
|
116
|
-
};
|
|
117
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
118
|
-
|
|
119
|
-
// src/runtimeExtensions.ts
|
|
120
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
121
|
-
const extensionConfiguration = Object.assign(
|
|
122
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
123
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
124
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
125
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
126
|
-
);
|
|
127
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
128
|
-
return Object.assign(
|
|
129
|
-
runtimeConfig,
|
|
130
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
131
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
132
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
133
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
134
|
-
);
|
|
135
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
136
112
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
162
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
163
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
164
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
165
|
-
this.middlewareStack.use(
|
|
166
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
167
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSageMakerFeatureStoreRuntimeHttpAuthSchemeParametersProvider,
|
|
168
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
169
|
-
"aws.auth#sigv4": config.credentials
|
|
170
|
-
}), "identityProviderConfigProvider")
|
|
171
|
-
})
|
|
172
|
-
);
|
|
173
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
177
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
178
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
179
|
-
*/
|
|
180
|
-
destroy() {
|
|
181
|
-
super.destroy();
|
|
182
|
-
}
|
|
113
|
+
class SageMakerFeatureStoreRuntimeServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, SageMakerFeatureStoreRuntimeServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException {
|
|
121
|
+
name = "AccessForbidden";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessForbidden",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessForbidden.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const ExpirationTimeResponse = {
|
|
135
|
+
DISABLED: "Disabled",
|
|
136
|
+
ENABLED: "Enabled",
|
|
183
137
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
138
|
+
class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException {
|
|
139
|
+
name = "InternalFailure";
|
|
140
|
+
$fault = "server";
|
|
141
|
+
Message;
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "InternalFailure",
|
|
145
|
+
$fault: "server",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
149
|
+
this.Message = opts.Message;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
class ServiceUnavailable extends SageMakerFeatureStoreRuntimeServiceException {
|
|
153
|
+
name = "ServiceUnavailable";
|
|
154
|
+
$fault = "server";
|
|
155
|
+
Message;
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "ServiceUnavailable",
|
|
159
|
+
$fault: "server",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
163
|
+
this.Message = opts.Message;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class ValidationError extends SageMakerFeatureStoreRuntimeServiceException {
|
|
167
|
+
name = "ValidationError";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
Message;
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ValidationError",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
177
|
+
this.Message = opts.Message;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const DeletionMode = {
|
|
181
|
+
HARD_DELETE: "HardDelete",
|
|
182
|
+
SOFT_DELETE: "SoftDelete",
|
|
211
183
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
184
|
+
const TargetStore = {
|
|
185
|
+
OFFLINE_STORE: "OfflineStore",
|
|
186
|
+
ONLINE_STORE: "OnlineStore",
|
|
187
|
+
};
|
|
188
|
+
class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException {
|
|
189
|
+
name = "ResourceNotFound";
|
|
190
|
+
$fault = "client";
|
|
191
|
+
Message;
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "ResourceNotFound",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, ResourceNotFound.prototype);
|
|
199
|
+
this.Message = opts.Message;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const TtlDurationUnit = {
|
|
203
|
+
DAYS: "Days",
|
|
204
|
+
HOURS: "Hours",
|
|
205
|
+
MINUTES: "Minutes",
|
|
206
|
+
SECONDS: "Seconds",
|
|
207
|
+
WEEKS: "Weeks",
|
|
233
208
|
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
209
|
+
|
|
210
|
+
const se_BatchGetRecordCommand = async (input, context) => {
|
|
211
|
+
const b = core.requestBuilder(input, context);
|
|
212
|
+
const headers = {
|
|
213
|
+
"content-type": "application/json",
|
|
214
|
+
};
|
|
215
|
+
b.bp("/BatchGetRecord");
|
|
216
|
+
let body;
|
|
217
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
218
|
+
ExpirationTimeResponse: [],
|
|
219
|
+
Identifiers: (_) => smithyClient._json(_),
|
|
220
|
+
}));
|
|
221
|
+
b.m("POST").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
237
223
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
constructor(opts) {
|
|
249
|
-
super({
|
|
250
|
-
name: "InternalFailure",
|
|
251
|
-
$fault: "server",
|
|
252
|
-
...opts
|
|
224
|
+
const se_DeleteRecordCommand = async (input, context) => {
|
|
225
|
+
const b = core.requestBuilder(input, context);
|
|
226
|
+
const headers = {};
|
|
227
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
228
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
229
|
+
const query = smithyClient.map({
|
|
230
|
+
[_RIVAS]: [, smithyClient.expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
231
|
+
[_ET]: [, smithyClient.expectNonNull(input[_ET], `EventTime`)],
|
|
232
|
+
[_TS]: [() => input.TargetStores !== void 0, () => input[_TS] || []],
|
|
233
|
+
[_DM]: [, input[_DM]],
|
|
253
234
|
});
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
235
|
+
let body;
|
|
236
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
237
|
+
return b.build();
|
|
257
238
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
*/
|
|
268
|
-
constructor(opts) {
|
|
269
|
-
super({
|
|
270
|
-
name: "ServiceUnavailable",
|
|
271
|
-
$fault: "server",
|
|
272
|
-
...opts
|
|
239
|
+
const se_GetRecordCommand = async (input, context) => {
|
|
240
|
+
const b = core.requestBuilder(input, context);
|
|
241
|
+
const headers = {};
|
|
242
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
243
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
244
|
+
const query = smithyClient.map({
|
|
245
|
+
[_RIVAS]: [, smithyClient.expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
246
|
+
[_FNe]: [() => input.FeatureNames !== void 0, () => input[_FN] || []],
|
|
247
|
+
[_ETR]: [, input[_ETR]],
|
|
273
248
|
});
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
249
|
+
let body;
|
|
250
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
277
252
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
253
|
+
const se_PutRecordCommand = async (input, context) => {
|
|
254
|
+
const b = core.requestBuilder(input, context);
|
|
255
|
+
const headers = {
|
|
256
|
+
"content-type": "application/json",
|
|
257
|
+
};
|
|
258
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
259
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
260
|
+
let body;
|
|
261
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
262
|
+
Record: (_) => smithyClient._json(_),
|
|
263
|
+
TargetStores: (_) => smithyClient._json(_),
|
|
264
|
+
TtlDuration: (_) => smithyClient._json(_),
|
|
265
|
+
}));
|
|
266
|
+
b.m("PUT").h(headers).b(body);
|
|
267
|
+
return b.build();
|
|
268
|
+
};
|
|
269
|
+
const de_BatchGetRecordCommand = async (output, context) => {
|
|
270
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
271
|
+
return de_CommandError(output, context);
|
|
272
|
+
}
|
|
273
|
+
const contents = smithyClient.map({
|
|
274
|
+
$metadata: deserializeMetadata(output),
|
|
293
275
|
});
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
276
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
277
|
+
const doc = smithyClient.take(data, {
|
|
278
|
+
Errors: smithyClient._json,
|
|
279
|
+
Records: smithyClient._json,
|
|
280
|
+
UnprocessedIdentifiers: smithyClient._json,
|
|
281
|
+
});
|
|
282
|
+
Object.assign(contents, doc);
|
|
283
|
+
return contents;
|
|
297
284
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
285
|
+
const de_DeleteRecordCommand = async (output, context) => {
|
|
286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
287
|
+
return de_CommandError(output, context);
|
|
288
|
+
}
|
|
289
|
+
const contents = smithyClient.map({
|
|
290
|
+
$metadata: deserializeMetadata(output),
|
|
291
|
+
});
|
|
292
|
+
await smithyClient.collectBody(output.body, context);
|
|
293
|
+
return contents;
|
|
301
294
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
295
|
+
const de_GetRecordCommand = async (output, context) => {
|
|
296
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
+
return de_CommandError(output, context);
|
|
298
|
+
}
|
|
299
|
+
const contents = smithyClient.map({
|
|
300
|
+
$metadata: deserializeMetadata(output),
|
|
301
|
+
});
|
|
302
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
303
|
+
const doc = smithyClient.take(data, {
|
|
304
|
+
ExpiresAt: smithyClient.expectString,
|
|
305
|
+
Record: smithyClient._json,
|
|
306
|
+
});
|
|
307
|
+
Object.assign(contents, doc);
|
|
308
|
+
return contents;
|
|
305
309
|
};
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
Message;
|
|
313
|
-
/**
|
|
314
|
-
* @internal
|
|
315
|
-
*/
|
|
316
|
-
constructor(opts) {
|
|
317
|
-
super({
|
|
318
|
-
name: "ResourceNotFound",
|
|
319
|
-
$fault: "client",
|
|
320
|
-
...opts
|
|
310
|
+
const de_PutRecordCommand = async (output, context) => {
|
|
311
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
+
return de_CommandError(output, context);
|
|
313
|
+
}
|
|
314
|
+
const contents = smithyClient.map({
|
|
315
|
+
$metadata: deserializeMetadata(output),
|
|
321
316
|
});
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
317
|
+
await smithyClient.collectBody(output.body, context);
|
|
318
|
+
return contents;
|
|
325
319
|
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
320
|
+
const de_CommandError = async (output, context) => {
|
|
321
|
+
const parsedOutput = {
|
|
322
|
+
...output,
|
|
323
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
324
|
+
};
|
|
325
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
326
|
+
switch (errorCode) {
|
|
327
|
+
case "AccessForbidden":
|
|
328
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
329
|
+
throw await de_AccessForbiddenRes(parsedOutput);
|
|
330
|
+
case "InternalFailure":
|
|
331
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
332
|
+
throw await de_InternalFailureRes(parsedOutput);
|
|
333
|
+
case "ServiceUnavailable":
|
|
334
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
335
|
+
throw await de_ServiceUnavailableRes(parsedOutput);
|
|
336
|
+
case "ValidationError":
|
|
337
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
338
|
+
throw await de_ValidationErrorRes(parsedOutput);
|
|
339
|
+
case "ResourceNotFound":
|
|
340
|
+
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
341
|
+
throw await de_ResourceNotFoundRes(parsedOutput);
|
|
342
|
+
default:
|
|
343
|
+
const parsedBody = parsedOutput.body;
|
|
344
|
+
return throwDefaultError({
|
|
345
|
+
output,
|
|
346
|
+
parsedBody,
|
|
347
|
+
errorCode,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
332
350
|
};
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
})
|
|
347
|
-
);
|
|
348
|
-
b.m("POST").h(headers).b(body);
|
|
349
|
-
return b.build();
|
|
350
|
-
}, "se_BatchGetRecordCommand");
|
|
351
|
-
var se_DeleteRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
352
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
353
|
-
const headers = {};
|
|
354
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
355
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
356
|
-
const query = (0, import_smithy_client.map)({
|
|
357
|
-
[_RIVAS]: [, (0, import_smithy_client.expectNonNull)(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
358
|
-
[_ET]: [, (0, import_smithy_client.expectNonNull)(input[_ET], `EventTime`)],
|
|
359
|
-
[_TS]: [() => input.TargetStores !== void 0, () => input[_TS] || []],
|
|
360
|
-
[_DM]: [, input[_DM]]
|
|
361
|
-
});
|
|
362
|
-
let body;
|
|
363
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
364
|
-
return b.build();
|
|
365
|
-
}, "se_DeleteRecordCommand");
|
|
366
|
-
var se_GetRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
367
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
368
|
-
const headers = {};
|
|
369
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
370
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
371
|
-
const query = (0, import_smithy_client.map)({
|
|
372
|
-
[_RIVAS]: [, (0, import_smithy_client.expectNonNull)(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
373
|
-
[_FNe]: [() => input.FeatureNames !== void 0, () => input[_FN] || []],
|
|
374
|
-
[_ETR]: [, input[_ETR]]
|
|
375
|
-
});
|
|
376
|
-
let body;
|
|
377
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
378
|
-
return b.build();
|
|
379
|
-
}, "se_GetRecordCommand");
|
|
380
|
-
var se_PutRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
381
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json"
|
|
384
|
-
};
|
|
385
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
386
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
387
|
-
let body;
|
|
388
|
-
body = JSON.stringify(
|
|
389
|
-
(0, import_smithy_client.take)(input, {
|
|
390
|
-
Record: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Record"),
|
|
391
|
-
TargetStores: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TargetStores"),
|
|
392
|
-
TtlDuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TtlDuration")
|
|
393
|
-
})
|
|
394
|
-
);
|
|
395
|
-
b.m("PUT").h(headers).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
}, "se_PutRecordCommand");
|
|
398
|
-
var de_BatchGetRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
-
return de_CommandError(output, context);
|
|
401
|
-
}
|
|
402
|
-
const contents = (0, import_smithy_client.map)({
|
|
403
|
-
$metadata: deserializeMetadata(output)
|
|
404
|
-
});
|
|
405
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
406
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
407
|
-
Errors: import_smithy_client._json,
|
|
408
|
-
Records: import_smithy_client._json,
|
|
409
|
-
UnprocessedIdentifiers: import_smithy_client._json
|
|
410
|
-
});
|
|
411
|
-
Object.assign(contents, doc);
|
|
412
|
-
return contents;
|
|
413
|
-
}, "de_BatchGetRecordCommand");
|
|
414
|
-
var de_DeleteRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
415
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return de_CommandError(output, context);
|
|
417
|
-
}
|
|
418
|
-
const contents = (0, import_smithy_client.map)({
|
|
419
|
-
$metadata: deserializeMetadata(output)
|
|
420
|
-
});
|
|
421
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
422
|
-
return contents;
|
|
423
|
-
}, "de_DeleteRecordCommand");
|
|
424
|
-
var de_GetRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = (0, import_smithy_client.map)({
|
|
429
|
-
$metadata: deserializeMetadata(output)
|
|
430
|
-
});
|
|
431
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
432
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
433
|
-
ExpiresAt: import_smithy_client.expectString,
|
|
434
|
-
Record: import_smithy_client._json
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
return contents;
|
|
438
|
-
}, "de_GetRecordCommand");
|
|
439
|
-
var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return de_CommandError(output, context);
|
|
442
|
-
}
|
|
443
|
-
const contents = (0, import_smithy_client.map)({
|
|
444
|
-
$metadata: deserializeMetadata(output)
|
|
445
|
-
});
|
|
446
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
447
|
-
return contents;
|
|
448
|
-
}, "de_PutRecordCommand");
|
|
449
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
453
|
-
};
|
|
454
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessForbidden":
|
|
457
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
458
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
459
|
-
case "InternalFailure":
|
|
460
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
461
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
462
|
-
case "ServiceUnavailable":
|
|
463
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
464
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
465
|
-
case "ValidationError":
|
|
466
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
467
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
468
|
-
case "ResourceNotFound":
|
|
469
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
470
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
}, "de_CommandError");
|
|
480
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SageMakerFeatureStoreRuntimeServiceException);
|
|
481
|
-
var de_AccessForbiddenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
482
|
-
const contents = (0, import_smithy_client.map)({});
|
|
483
|
-
const data = parsedOutput.body;
|
|
484
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
485
|
-
Message: import_smithy_client.expectString
|
|
486
|
-
});
|
|
487
|
-
Object.assign(contents, doc);
|
|
488
|
-
const exception = new AccessForbidden({
|
|
489
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
490
|
-
...contents
|
|
491
|
-
});
|
|
492
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
493
|
-
}, "de_AccessForbiddenRes");
|
|
494
|
-
var de_InternalFailureRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
495
|
-
const contents = (0, import_smithy_client.map)({});
|
|
496
|
-
const data = parsedOutput.body;
|
|
497
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
498
|
-
Message: import_smithy_client.expectString
|
|
499
|
-
});
|
|
500
|
-
Object.assign(contents, doc);
|
|
501
|
-
const exception = new InternalFailure({
|
|
502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
503
|
-
...contents
|
|
504
|
-
});
|
|
505
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
506
|
-
}, "de_InternalFailureRes");
|
|
507
|
-
var de_ResourceNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
508
|
-
const contents = (0, import_smithy_client.map)({});
|
|
509
|
-
const data = parsedOutput.body;
|
|
510
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
511
|
-
Message: import_smithy_client.expectString
|
|
512
|
-
});
|
|
513
|
-
Object.assign(contents, doc);
|
|
514
|
-
const exception = new ResourceNotFound({
|
|
515
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
516
|
-
...contents
|
|
517
|
-
});
|
|
518
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
519
|
-
}, "de_ResourceNotFoundRes");
|
|
520
|
-
var de_ServiceUnavailableRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
521
|
-
const contents = (0, import_smithy_client.map)({});
|
|
522
|
-
const data = parsedOutput.body;
|
|
523
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
524
|
-
Message: import_smithy_client.expectString
|
|
525
|
-
});
|
|
526
|
-
Object.assign(contents, doc);
|
|
527
|
-
const exception = new ServiceUnavailable({
|
|
528
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
529
|
-
...contents
|
|
530
|
-
});
|
|
531
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
532
|
-
}, "de_ServiceUnavailableRes");
|
|
533
|
-
var de_ValidationErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
534
|
-
const contents = (0, import_smithy_client.map)({});
|
|
535
|
-
const data = parsedOutput.body;
|
|
536
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
537
|
-
Message: import_smithy_client.expectString
|
|
538
|
-
});
|
|
539
|
-
Object.assign(contents, doc);
|
|
540
|
-
const exception = new ValidationError({
|
|
541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
542
|
-
...contents
|
|
543
|
-
});
|
|
544
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
545
|
-
}, "de_ValidationErrorRes");
|
|
546
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
547
|
-
httpStatusCode: output.statusCode,
|
|
548
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
549
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
550
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
551
|
-
}), "deserializeMetadata");
|
|
552
|
-
var _DM = "DeletionMode";
|
|
553
|
-
var _ET = "EventTime";
|
|
554
|
-
var _ETR = "ExpirationTimeResponse";
|
|
555
|
-
var _FN = "FeatureNames";
|
|
556
|
-
var _FNe = "FeatureName";
|
|
557
|
-
var _RIVAS = "RecordIdentifierValueAsString";
|
|
558
|
-
var _TS = "TargetStores";
|
|
559
|
-
|
|
560
|
-
// src/commands/BatchGetRecordCommand.ts
|
|
561
|
-
var BatchGetRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
562
|
-
return [
|
|
563
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
564
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
565
|
-
];
|
|
566
|
-
}).s("AmazonSageMakerFeatureStoreRuntime", "BatchGetRecord", {}).n("SageMakerFeatureStoreRuntimeClient", "BatchGetRecordCommand").f(void 0, void 0).ser(se_BatchGetRecordCommand).de(de_BatchGetRecordCommand).build() {
|
|
567
|
-
static {
|
|
568
|
-
__name(this, "BatchGetRecordCommand");
|
|
569
|
-
}
|
|
351
|
+
const throwDefaultError = smithyClient.withBaseException(SageMakerFeatureStoreRuntimeServiceException);
|
|
352
|
+
const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
353
|
+
const contents = smithyClient.map({});
|
|
354
|
+
const data = parsedOutput.body;
|
|
355
|
+
const doc = smithyClient.take(data, {
|
|
356
|
+
Message: smithyClient.expectString,
|
|
357
|
+
});
|
|
358
|
+
Object.assign(contents, doc);
|
|
359
|
+
const exception = new AccessForbidden({
|
|
360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
+
...contents,
|
|
362
|
+
});
|
|
363
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
570
364
|
};
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
})
|
|
582
|
-
|
|
583
|
-
__name(this, "DeleteRecordCommand");
|
|
584
|
-
}
|
|
365
|
+
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
366
|
+
const contents = smithyClient.map({});
|
|
367
|
+
const data = parsedOutput.body;
|
|
368
|
+
const doc = smithyClient.take(data, {
|
|
369
|
+
Message: smithyClient.expectString,
|
|
370
|
+
});
|
|
371
|
+
Object.assign(contents, doc);
|
|
372
|
+
const exception = new InternalFailure({
|
|
373
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
374
|
+
...contents,
|
|
375
|
+
});
|
|
376
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
585
377
|
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
})
|
|
597
|
-
|
|
598
|
-
__name(this, "GetRecordCommand");
|
|
599
|
-
}
|
|
378
|
+
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
379
|
+
const contents = smithyClient.map({});
|
|
380
|
+
const data = parsedOutput.body;
|
|
381
|
+
const doc = smithyClient.take(data, {
|
|
382
|
+
Message: smithyClient.expectString,
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
385
|
+
const exception = new ResourceNotFound({
|
|
386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
387
|
+
...contents,
|
|
388
|
+
});
|
|
389
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
600
390
|
};
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
})
|
|
612
|
-
|
|
613
|
-
__name(this, "PutRecordCommand");
|
|
614
|
-
}
|
|
391
|
+
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
392
|
+
const contents = smithyClient.map({});
|
|
393
|
+
const data = parsedOutput.body;
|
|
394
|
+
const doc = smithyClient.take(data, {
|
|
395
|
+
Message: smithyClient.expectString,
|
|
396
|
+
});
|
|
397
|
+
Object.assign(contents, doc);
|
|
398
|
+
const exception = new ServiceUnavailable({
|
|
399
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
400
|
+
...contents,
|
|
401
|
+
});
|
|
402
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
615
403
|
};
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
404
|
+
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
405
|
+
const contents = smithyClient.map({});
|
|
406
|
+
const data = parsedOutput.body;
|
|
407
|
+
const doc = smithyClient.take(data, {
|
|
408
|
+
Message: smithyClient.expectString,
|
|
409
|
+
});
|
|
410
|
+
Object.assign(contents, doc);
|
|
411
|
+
const exception = new ValidationError({
|
|
412
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
413
|
+
...contents,
|
|
414
|
+
});
|
|
415
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
623
416
|
};
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
417
|
+
const deserializeMetadata = (output) => ({
|
|
418
|
+
httpStatusCode: output.statusCode,
|
|
419
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
420
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
421
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
422
|
+
});
|
|
423
|
+
const _DM = "DeletionMode";
|
|
424
|
+
const _ET = "EventTime";
|
|
425
|
+
const _ETR = "ExpirationTimeResponse";
|
|
426
|
+
const _FN = "FeatureNames";
|
|
427
|
+
const _FNe = "FeatureName";
|
|
428
|
+
const _RIVAS = "RecordIdentifierValueAsString";
|
|
429
|
+
const _TS = "TargetStores";
|
|
430
|
+
|
|
431
|
+
class BatchGetRecordCommand extends smithyClient.Command
|
|
432
|
+
.classBuilder()
|
|
433
|
+
.ep(commonParams)
|
|
434
|
+
.m(function (Command, cs, config, o) {
|
|
435
|
+
return [
|
|
436
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
437
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
438
|
+
];
|
|
439
|
+
})
|
|
440
|
+
.s("AmazonSageMakerFeatureStoreRuntime", "BatchGetRecord", {})
|
|
441
|
+
.n("SageMakerFeatureStoreRuntimeClient", "BatchGetRecordCommand")
|
|
442
|
+
.f(void 0, void 0)
|
|
443
|
+
.ser(se_BatchGetRecordCommand)
|
|
444
|
+
.de(de_BatchGetRecordCommand)
|
|
445
|
+
.build() {
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
class DeleteRecordCommand extends smithyClient.Command
|
|
449
|
+
.classBuilder()
|
|
450
|
+
.ep(commonParams)
|
|
451
|
+
.m(function (Command, cs, config, o) {
|
|
452
|
+
return [
|
|
453
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
454
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
455
|
+
];
|
|
456
|
+
})
|
|
457
|
+
.s("AmazonSageMakerFeatureStoreRuntime", "DeleteRecord", {})
|
|
458
|
+
.n("SageMakerFeatureStoreRuntimeClient", "DeleteRecordCommand")
|
|
459
|
+
.f(void 0, void 0)
|
|
460
|
+
.ser(se_DeleteRecordCommand)
|
|
461
|
+
.de(de_DeleteRecordCommand)
|
|
462
|
+
.build() {
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
class GetRecordCommand extends smithyClient.Command
|
|
466
|
+
.classBuilder()
|
|
467
|
+
.ep(commonParams)
|
|
468
|
+
.m(function (Command, cs, config, o) {
|
|
469
|
+
return [
|
|
470
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
471
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
472
|
+
];
|
|
473
|
+
})
|
|
474
|
+
.s("AmazonSageMakerFeatureStoreRuntime", "GetRecord", {})
|
|
475
|
+
.n("SageMakerFeatureStoreRuntimeClient", "GetRecordCommand")
|
|
476
|
+
.f(void 0, void 0)
|
|
477
|
+
.ser(se_GetRecordCommand)
|
|
478
|
+
.de(de_GetRecordCommand)
|
|
479
|
+
.build() {
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
class PutRecordCommand extends smithyClient.Command
|
|
483
|
+
.classBuilder()
|
|
484
|
+
.ep(commonParams)
|
|
485
|
+
.m(function (Command, cs, config, o) {
|
|
486
|
+
return [
|
|
487
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
488
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
489
|
+
];
|
|
490
|
+
})
|
|
491
|
+
.s("AmazonSageMakerFeatureStoreRuntime", "PutRecord", {})
|
|
492
|
+
.n("SageMakerFeatureStoreRuntimeClient", "PutRecordCommand")
|
|
493
|
+
.f(void 0, void 0)
|
|
494
|
+
.ser(se_PutRecordCommand)
|
|
495
|
+
.de(de_PutRecordCommand)
|
|
496
|
+
.build() {
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
const commands = {
|
|
500
|
+
BatchGetRecordCommand,
|
|
501
|
+
DeleteRecordCommand,
|
|
502
|
+
GetRecordCommand,
|
|
503
|
+
PutRecordCommand,
|
|
628
504
|
};
|
|
629
|
-
|
|
630
|
-
|
|
505
|
+
class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreRuntimeClient {
|
|
506
|
+
}
|
|
507
|
+
smithyClient.createAggregatedClient(commands, SageMakerFeatureStoreRuntime);
|
|
631
508
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
SageMakerFeatureStoreRuntimeClient,
|
|
636
|
-
SageMakerFeatureStoreRuntime,
|
|
637
|
-
$Command,
|
|
638
|
-
BatchGetRecordCommand,
|
|
639
|
-
DeleteRecordCommand,
|
|
640
|
-
GetRecordCommand,
|
|
641
|
-
PutRecordCommand,
|
|
642
|
-
AccessForbidden,
|
|
643
|
-
ExpirationTimeResponse,
|
|
644
|
-
InternalFailure,
|
|
645
|
-
ServiceUnavailable,
|
|
646
|
-
ValidationError,
|
|
647
|
-
DeletionMode,
|
|
648
|
-
TargetStore,
|
|
649
|
-
ResourceNotFound,
|
|
650
|
-
TtlDurationUnit
|
|
509
|
+
Object.defineProperty(exports, "$Command", {
|
|
510
|
+
enumerable: true,
|
|
511
|
+
get: function () { return smithyClient.Command; }
|
|
651
512
|
});
|
|
652
|
-
|
|
513
|
+
Object.defineProperty(exports, "__Client", {
|
|
514
|
+
enumerable: true,
|
|
515
|
+
get: function () { return smithyClient.Client; }
|
|
516
|
+
});
|
|
517
|
+
exports.AccessForbidden = AccessForbidden;
|
|
518
|
+
exports.BatchGetRecordCommand = BatchGetRecordCommand;
|
|
519
|
+
exports.DeleteRecordCommand = DeleteRecordCommand;
|
|
520
|
+
exports.DeletionMode = DeletionMode;
|
|
521
|
+
exports.ExpirationTimeResponse = ExpirationTimeResponse;
|
|
522
|
+
exports.GetRecordCommand = GetRecordCommand;
|
|
523
|
+
exports.InternalFailure = InternalFailure;
|
|
524
|
+
exports.PutRecordCommand = PutRecordCommand;
|
|
525
|
+
exports.ResourceNotFound = ResourceNotFound;
|
|
526
|
+
exports.SageMakerFeatureStoreRuntime = SageMakerFeatureStoreRuntime;
|
|
527
|
+
exports.SageMakerFeatureStoreRuntimeClient = SageMakerFeatureStoreRuntimeClient;
|
|
528
|
+
exports.SageMakerFeatureStoreRuntimeServiceException = SageMakerFeatureStoreRuntimeServiceException;
|
|
529
|
+
exports.ServiceUnavailable = ServiceUnavailable;
|
|
530
|
+
exports.TargetStore = TargetStore;
|
|
531
|
+
exports.TtlDurationUnit = TtlDurationUnit;
|
|
532
|
+
exports.ValidationError = ValidationError;
|
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.906.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-featurestore-runtime",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.906.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.906.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.901.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.906.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
30
30
|
"@aws-sdk/types": "3.901.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.901.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.906.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.3.0",
|
|
35
35
|
"@smithy/core": "^3.14.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.0",
|