aws-sdk-sagemakerfeaturestoreruntime 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime.rb +53 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/client.rb +485 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/client_api.rb +130 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/customizations.rb +0 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/errors.rb +118 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/resource.rb +26 -0
- data/lib/aws-sdk-sagemakerfeaturestoreruntime/types.rb +226 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '09d20b2af20692e279ec6aab559d7ce542f20ba8a8e7b13a79338c450bfc6546'
|
4
|
+
data.tar.gz: 81ed51c7472597fdbbba1659ea10e1aa686ae3953eef2f1c87601b040996e4de
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 82fc0cc5ab08faaa18e16c738e4302fd6a24bc7aa5663c9eb0dd7b781fb17ccc8ade94fd53e80a09676ee8e36daf99727eb8adc73c187c2e5016502987118ca3
|
7
|
+
data.tar.gz: ea7d54de86cb210c5fb37c91203d0466634edf5c8d22948b4b34c7d44adc52681c7bded691608f99f01334343df4c06c63f16a1f4013d7b75f0678ace05e6178
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
require 'aws-sdk-core'
|
12
|
+
require 'aws-sigv4'
|
13
|
+
|
14
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/types'
|
15
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/client_api'
|
16
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/client'
|
17
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/errors'
|
18
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/resource'
|
19
|
+
require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
|
20
|
+
|
21
|
+
# This module provides support for Amazon SageMaker Feature Store Runtime. This module is available in the
|
22
|
+
# `aws-sdk-sagemakerfeaturestoreruntime` gem.
|
23
|
+
#
|
24
|
+
# # Client
|
25
|
+
#
|
26
|
+
# The {Client} class provides one method for each API operation. Operation
|
27
|
+
# methods each accept a hash of request parameters and return a response
|
28
|
+
# structure.
|
29
|
+
#
|
30
|
+
# sage_maker_feature_store_runtime = Aws::SageMakerFeatureStoreRuntime::Client.new
|
31
|
+
# resp = sage_maker_feature_store_runtime.delete_record(params)
|
32
|
+
#
|
33
|
+
# See {Client} for more information.
|
34
|
+
#
|
35
|
+
# # Errors
|
36
|
+
#
|
37
|
+
# Errors returned from Amazon SageMaker Feature Store Runtime are defined in the
|
38
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
39
|
+
#
|
40
|
+
# begin
|
41
|
+
# # do stuff
|
42
|
+
# rescue Aws::SageMakerFeatureStoreRuntime::Errors::ServiceError
|
43
|
+
# # rescues all Amazon SageMaker Feature Store Runtime API errors
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# See {Errors} for more information.
|
47
|
+
#
|
48
|
+
# @!group service
|
49
|
+
module Aws::SageMakerFeatureStoreRuntime
|
50
|
+
|
51
|
+
GEM_VERSION = '1.0.0'
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,485 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'seahorse/client/plugins/content_length.rb'
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
12
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
13
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
14
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
15
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
22
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
|
+
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
|
+
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
|
+
|
33
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakerfeaturestoreruntime)
|
34
|
+
|
35
|
+
module Aws::SageMakerFeatureStoreRuntime
|
36
|
+
# An API client for SageMakerFeatureStoreRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
|
37
|
+
#
|
38
|
+
# client = Aws::SageMakerFeatureStoreRuntime::Client.new(
|
39
|
+
# region: region_name,
|
40
|
+
# credentials: credentials,
|
41
|
+
# # ...
|
42
|
+
# )
|
43
|
+
#
|
44
|
+
# For details on configuring region and credentials see
|
45
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
46
|
+
#
|
47
|
+
# See {#initialize} for a full list of supported configuration options.
|
48
|
+
class Client < Seahorse::Client::Base
|
49
|
+
|
50
|
+
include Aws::ClientStubs
|
51
|
+
|
52
|
+
@identifier = :sagemakerfeaturestoreruntime
|
53
|
+
|
54
|
+
set_api(ClientApi::API)
|
55
|
+
|
56
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
57
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
58
|
+
add_plugin(Aws::Plugins::Logging)
|
59
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
60
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
61
|
+
add_plugin(Aws::Plugins::UserAgent)
|
62
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
63
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
64
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
65
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
66
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
67
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
68
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
69
|
+
add_plugin(Aws::Plugins::StubResponses)
|
70
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
71
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
72
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
73
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
76
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
77
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
|
+
|
79
|
+
# @overload initialize(options)
|
80
|
+
# @param [Hash] options
|
81
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
82
|
+
# Your AWS credentials. This can be an instance of any one of the
|
83
|
+
# following classes:
|
84
|
+
#
|
85
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
|
+
# credentials.
|
87
|
+
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
102
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
103
|
+
# from an EC2 IMDS on an EC2 instance.
|
104
|
+
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
107
|
+
#
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
110
|
+
#
|
111
|
+
# When `:credentials` are not configured directly, the following
|
112
|
+
# locations will be searched for credentials:
|
113
|
+
#
|
114
|
+
# * `Aws.config[:credentials]`
|
115
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
116
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
117
|
+
# * `~/.aws/credentials`
|
118
|
+
# * `~/.aws/config`
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
123
|
+
#
|
124
|
+
# @option options [required, String] :region
|
125
|
+
# The AWS region to connect to. The configured `:region` is
|
126
|
+
# used to determine the service `:endpoint`. When not passed,
|
127
|
+
# a default `:region` is searched for in the following locations:
|
128
|
+
#
|
129
|
+
# * `Aws.config[:region]`
|
130
|
+
# * `ENV['AWS_REGION']`
|
131
|
+
# * `ENV['AMAZON_REGION']`
|
132
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
133
|
+
# * `~/.aws/credentials`
|
134
|
+
# * `~/.aws/config`
|
135
|
+
#
|
136
|
+
# @option options [String] :access_key_id
|
137
|
+
#
|
138
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
139
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
140
|
+
# the background every 60 secs (default). Defaults to `false`.
|
141
|
+
#
|
142
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
143
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
144
|
+
# until there is sufficent client side capacity to retry the request.
|
145
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
146
|
+
# not retry instead of sleeping.
|
147
|
+
#
|
148
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
149
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
150
|
+
# this client.
|
151
|
+
#
|
152
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
153
|
+
# Allows you to provide an identifier for this client which will be attached to
|
154
|
+
# all generated client side metrics. Defaults to an empty string.
|
155
|
+
#
|
156
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
157
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
158
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
159
|
+
#
|
160
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
161
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
162
|
+
# agent is running on, where client metrics will be published via UDP.
|
163
|
+
#
|
164
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
165
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
166
|
+
# will use the Client Side Monitoring Agent Publisher.
|
167
|
+
#
|
168
|
+
# @option options [Boolean] :convert_params (true)
|
169
|
+
# When `true`, an attempt is made to coerce request parameters into
|
170
|
+
# the required types.
|
171
|
+
#
|
172
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
173
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
175
|
+
#
|
176
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
|
+
# Set to true to disable SDK automatically adding host prefix
|
178
|
+
# to default service endpoint when available.
|
179
|
+
#
|
180
|
+
# @option options [String] :endpoint
|
181
|
+
# The client endpoint is normally constructed from the `:region`
|
182
|
+
# option. You should only configure an `:endpoint` when connecting
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
184
|
+
#
|
185
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
186
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
187
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
188
|
+
#
|
189
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
190
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
191
|
+
#
|
192
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
193
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
194
|
+
# Use this option to config the time interval in seconds for making
|
195
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
196
|
+
#
|
197
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
198
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
199
|
+
#
|
200
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
201
|
+
# The log formatter.
|
202
|
+
#
|
203
|
+
# @option options [Symbol] :log_level (:info)
|
204
|
+
# The log level to send messages to the `:logger` at.
|
205
|
+
#
|
206
|
+
# @option options [Logger] :logger
|
207
|
+
# The Logger instance to send log messages to. If this option
|
208
|
+
# is not set, logging will be disabled.
|
209
|
+
#
|
210
|
+
# @option options [Integer] :max_attempts (3)
|
211
|
+
# An integer representing the maximum number attempts that will be made for
|
212
|
+
# a single request, including the initial attempt. For example,
|
213
|
+
# setting this value to 5 will result in a request being retried up to
|
214
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
215
|
+
#
|
216
|
+
# @option options [String] :profile ("default")
|
217
|
+
# Used when loading credentials from the shared credentials file
|
218
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
219
|
+
#
|
220
|
+
# @option options [Proc] :retry_backoff
|
221
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
222
|
+
# This option is only used in the `legacy` retry mode.
|
223
|
+
#
|
224
|
+
# @option options [Float] :retry_base_delay (0.3)
|
225
|
+
# The base delay in seconds used by the default backoff function. This option
|
226
|
+
# is only used in the `legacy` retry mode.
|
227
|
+
#
|
228
|
+
# @option options [Symbol] :retry_jitter (:none)
|
229
|
+
# A delay randomiser function used by the default backoff function.
|
230
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
231
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
232
|
+
# in the `legacy` retry mode.
|
233
|
+
#
|
234
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
235
|
+
#
|
236
|
+
# @option options [Integer] :retry_limit (3)
|
237
|
+
# The maximum number of times to retry failed requests. Only
|
238
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
239
|
+
# are retried. Generally, these are throttling errors, data
|
240
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
241
|
+
# endpoint discovery, and errors from expired credentials.
|
242
|
+
# This option is only used in the `legacy` retry mode.
|
243
|
+
#
|
244
|
+
# @option options [Integer] :retry_max_delay (0)
|
245
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
246
|
+
# used by the default backoff function. This option is only used in the
|
247
|
+
# `legacy` retry mode.
|
248
|
+
#
|
249
|
+
# @option options [String] :retry_mode ("legacy")
|
250
|
+
# Specifies which retry algorithm to use. Values are:
|
251
|
+
#
|
252
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
253
|
+
# no retry mode is provided.
|
254
|
+
#
|
255
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
256
|
+
# This includes support for retry quotas, which limit the number of
|
257
|
+
# unsuccessful retries a client can make.
|
258
|
+
#
|
259
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
260
|
+
# functionality of `standard` mode along with automatic client side
|
261
|
+
# throttling. This is a provisional mode that may change behavior
|
262
|
+
# in the future.
|
263
|
+
#
|
264
|
+
#
|
265
|
+
# @option options [String] :secret_access_key
|
266
|
+
#
|
267
|
+
# @option options [String] :session_token
|
268
|
+
#
|
269
|
+
# @option options [Boolean] :stub_responses (false)
|
270
|
+
# Causes the client to return stubbed responses. By default
|
271
|
+
# fake responses are generated and returned. You can specify
|
272
|
+
# the response data to return or errors to raise by calling
|
273
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
274
|
+
#
|
275
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
|
+
# requests are made, and retries are disabled.
|
277
|
+
#
|
278
|
+
# @option options [Boolean] :validate_params (true)
|
279
|
+
# When `true`, request parameters are validated before
|
280
|
+
# sending the request.
|
281
|
+
#
|
282
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
283
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
284
|
+
#
|
285
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
286
|
+
# seconds to wait when opening a HTTP session before raising a
|
287
|
+
# `Timeout::Error`.
|
288
|
+
#
|
289
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
290
|
+
# number of seconds to wait for response data. This value can
|
291
|
+
# safely be set per-request on the session.
|
292
|
+
#
|
293
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
294
|
+
# seconds a connection is allowed to sit idle before it is
|
295
|
+
# considered stale. Stale connections are closed and removed
|
296
|
+
# from the pool before making a request.
|
297
|
+
#
|
298
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
299
|
+
# seconds to wait for a 100-continue response before sending the
|
300
|
+
# request body. This option has no effect unless the request has
|
301
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
302
|
+
# disables this behaviour. This value can safely be set per
|
303
|
+
# request on the session.
|
304
|
+
#
|
305
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
306
|
+
# HTTP debug output will be sent to the `:logger`.
|
307
|
+
#
|
308
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
309
|
+
# SSL peer certificates are verified when establishing a
|
310
|
+
# connection.
|
311
|
+
#
|
312
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
313
|
+
# certificate authority bundle file that should be used when
|
314
|
+
# verifying peer certificates. If you do not pass
|
315
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
316
|
+
# will be used if available.
|
317
|
+
#
|
318
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
319
|
+
# directory that contains the unbundled SSL certificate
|
320
|
+
# authority files for verifying peer certificates. If you do
|
321
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
322
|
+
# system default will be used if available.
|
323
|
+
#
|
324
|
+
def initialize(*args)
|
325
|
+
super
|
326
|
+
end
|
327
|
+
|
328
|
+
# @!group API Operations
|
329
|
+
|
330
|
+
# Deletes a `Record` from a `FeatureGroup`. A new record will show up in
|
331
|
+
# the `OfflineStore` when the `DeleteRecord` API is called. This record
|
332
|
+
# will have a value of `True` in the `is_deleted` column.
|
333
|
+
#
|
334
|
+
# @option params [required, String] :feature_group_name
|
335
|
+
# The name of the feature group to delete the record from.
|
336
|
+
#
|
337
|
+
# @option params [required, String] :record_identifier_value_as_string
|
338
|
+
# The value for the `RecordIdentifier` that uniquely identifies the
|
339
|
+
# record, in string format.
|
340
|
+
#
|
341
|
+
# @option params [required, String] :event_time
|
342
|
+
# Timestamp indicating when the deletion event occurred. `EventTime` can
|
343
|
+
# be used to query data at a certain point in time.
|
344
|
+
#
|
345
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
346
|
+
#
|
347
|
+
# @example Request syntax with placeholder values
|
348
|
+
#
|
349
|
+
# resp = client.delete_record({
|
350
|
+
# feature_group_name: "FeatureGroupName", # required
|
351
|
+
# record_identifier_value_as_string: "ValueAsString", # required
|
352
|
+
# event_time: "ValueAsString", # required
|
353
|
+
# })
|
354
|
+
#
|
355
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecord AWS API Documentation
|
356
|
+
#
|
357
|
+
# @overload delete_record(params = {})
|
358
|
+
# @param [Hash] params ({})
|
359
|
+
def delete_record(params = {}, options = {})
|
360
|
+
req = build_request(:delete_record, params)
|
361
|
+
req.send_request(options)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Use for `OnlineStore` serving from a `FeatureStore`. Only the latest
|
365
|
+
# records stored in the `OnlineStore` can be retrieved. If no Record
|
366
|
+
# with `RecordIdentifierValue` is found, then an empty result is
|
367
|
+
# returned.
|
368
|
+
#
|
369
|
+
# @option params [required, String] :feature_group_name
|
370
|
+
# The name of the feature group in which you want to put the records.
|
371
|
+
#
|
372
|
+
# @option params [required, String] :record_identifier_value_as_string
|
373
|
+
# The value that corresponds to `RecordIdentifier` type and uniquely
|
374
|
+
# identifies the record in the `FeatureGroup`.
|
375
|
+
#
|
376
|
+
# @option params [Array<String>] :feature_names
|
377
|
+
# List of names of Features to be retrieved. If not specified, the
|
378
|
+
# latest value for all the Features are returned.
|
379
|
+
#
|
380
|
+
# @return [Types::GetRecordResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
381
|
+
#
|
382
|
+
# * {Types::GetRecordResponse#record #record} => Array<Types::FeatureValue>
|
383
|
+
#
|
384
|
+
# @example Request syntax with placeholder values
|
385
|
+
#
|
386
|
+
# resp = client.get_record({
|
387
|
+
# feature_group_name: "FeatureGroupName", # required
|
388
|
+
# record_identifier_value_as_string: "ValueAsString", # required
|
389
|
+
# feature_names: ["FeatureName"],
|
390
|
+
# })
|
391
|
+
#
|
392
|
+
# @example Response structure
|
393
|
+
#
|
394
|
+
# resp.record #=> Array
|
395
|
+
# resp.record[0].feature_name #=> String
|
396
|
+
# resp.record[0].value_as_string #=> String
|
397
|
+
#
|
398
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/GetRecord AWS API Documentation
|
399
|
+
#
|
400
|
+
# @overload get_record(params = {})
|
401
|
+
# @param [Hash] params ({})
|
402
|
+
def get_record(params = {}, options = {})
|
403
|
+
req = build_request(:get_record, params)
|
404
|
+
req.send_request(options)
|
405
|
+
end
|
406
|
+
|
407
|
+
# Used for data ingestion into the `FeatureStore`. The `PutRecord` API
|
408
|
+
# writes to both the `OnlineStore` and `OfflineStore`. If the record is
|
409
|
+
# the latest record for the `recordIdentifier`, the record is written to
|
410
|
+
# both the `OnlineStore` and `OfflineStore`. If the record is a historic
|
411
|
+
# record, it is written only to the `OfflineStore`.
|
412
|
+
#
|
413
|
+
# @option params [required, String] :feature_group_name
|
414
|
+
# The name of the feature group that you want to insert the record into.
|
415
|
+
#
|
416
|
+
# @option params [required, Array<Types::FeatureValue>] :record
|
417
|
+
# List of FeatureValues to be inserted. This will be a full over-write.
|
418
|
+
# If you only want to update few of the feature values, do the
|
419
|
+
# following:
|
420
|
+
#
|
421
|
+
# * Use `GetRecord` to retrieve the latest record.
|
422
|
+
#
|
423
|
+
# * Update the record returned from `GetRecord`.
|
424
|
+
#
|
425
|
+
# * Use `PutRecord` to update feature values.
|
426
|
+
#
|
427
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
428
|
+
#
|
429
|
+
# @example Request syntax with placeholder values
|
430
|
+
#
|
431
|
+
# resp = client.put_record({
|
432
|
+
# feature_group_name: "FeatureGroupName", # required
|
433
|
+
# record: [ # required
|
434
|
+
# {
|
435
|
+
# feature_name: "FeatureName", # required
|
436
|
+
# value_as_string: "ValueAsString", # required
|
437
|
+
# },
|
438
|
+
# ],
|
439
|
+
# })
|
440
|
+
#
|
441
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/PutRecord AWS API Documentation
|
442
|
+
#
|
443
|
+
# @overload put_record(params = {})
|
444
|
+
# @param [Hash] params ({})
|
445
|
+
def put_record(params = {}, options = {})
|
446
|
+
req = build_request(:put_record, params)
|
447
|
+
req.send_request(options)
|
448
|
+
end
|
449
|
+
|
450
|
+
# @!endgroup
|
451
|
+
|
452
|
+
# @param params ({})
|
453
|
+
# @api private
|
454
|
+
def build_request(operation_name, params = {})
|
455
|
+
handlers = @handlers.for(operation_name)
|
456
|
+
context = Seahorse::Client::RequestContext.new(
|
457
|
+
operation_name: operation_name,
|
458
|
+
operation: config.api.operation(operation_name),
|
459
|
+
client: self,
|
460
|
+
params: params,
|
461
|
+
config: config)
|
462
|
+
context[:gem_name] = 'aws-sdk-sagemakerfeaturestoreruntime'
|
463
|
+
context[:gem_version] = '1.0.0'
|
464
|
+
Seahorse::Client::Request.new(handlers, context)
|
465
|
+
end
|
466
|
+
|
467
|
+
# @api private
|
468
|
+
# @deprecated
|
469
|
+
def waiter_names
|
470
|
+
[]
|
471
|
+
end
|
472
|
+
|
473
|
+
class << self
|
474
|
+
|
475
|
+
# @api private
|
476
|
+
attr_reader :identifier
|
477
|
+
|
478
|
+
# @api private
|
479
|
+
def errors_module
|
480
|
+
Errors
|
481
|
+
end
|
482
|
+
|
483
|
+
end
|
484
|
+
end
|
485
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SageMakerFeatureStoreRuntime
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessForbidden = Shapes::StructureShape.new(name: 'AccessForbidden')
|
17
|
+
DeleteRecordRequest = Shapes::StructureShape.new(name: 'DeleteRecordRequest')
|
18
|
+
FeatureGroupName = Shapes::StringShape.new(name: 'FeatureGroupName')
|
19
|
+
FeatureName = Shapes::StringShape.new(name: 'FeatureName')
|
20
|
+
FeatureNames = Shapes::ListShape.new(name: 'FeatureNames')
|
21
|
+
FeatureValue = Shapes::StructureShape.new(name: 'FeatureValue')
|
22
|
+
GetRecordRequest = Shapes::StructureShape.new(name: 'GetRecordRequest')
|
23
|
+
GetRecordResponse = Shapes::StructureShape.new(name: 'GetRecordResponse')
|
24
|
+
InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
|
25
|
+
Message = Shapes::StringShape.new(name: 'Message')
|
26
|
+
PutRecordRequest = Shapes::StructureShape.new(name: 'PutRecordRequest')
|
27
|
+
Record = Shapes::ListShape.new(name: 'Record')
|
28
|
+
ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
|
29
|
+
ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
|
30
|
+
ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
|
31
|
+
ValueAsString = Shapes::StringShape.new(name: 'ValueAsString')
|
32
|
+
|
33
|
+
AccessForbidden.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
34
|
+
AccessForbidden.struct_class = Types::AccessForbidden
|
35
|
+
|
36
|
+
DeleteRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
|
37
|
+
DeleteRecordRequest.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "RecordIdentifierValueAsString"))
|
38
|
+
DeleteRecordRequest.add_member(:event_time, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "EventTime"))
|
39
|
+
DeleteRecordRequest.struct_class = Types::DeleteRecordRequest
|
40
|
+
|
41
|
+
FeatureNames.member = Shapes::ShapeRef.new(shape: FeatureName)
|
42
|
+
|
43
|
+
FeatureValue.add_member(:feature_name, Shapes::ShapeRef.new(shape: FeatureName, required: true, location_name: "FeatureName"))
|
44
|
+
FeatureValue.add_member(:value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "ValueAsString"))
|
45
|
+
FeatureValue.struct_class = Types::FeatureValue
|
46
|
+
|
47
|
+
GetRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
|
48
|
+
GetRecordRequest.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "RecordIdentifierValueAsString"))
|
49
|
+
GetRecordRequest.add_member(:feature_names, Shapes::ShapeRef.new(shape: FeatureNames, location: "querystring", location_name: "FeatureName"))
|
50
|
+
GetRecordRequest.struct_class = Types::GetRecordRequest
|
51
|
+
|
52
|
+
GetRecordResponse.add_member(:record, Shapes::ShapeRef.new(shape: Record, location_name: "Record"))
|
53
|
+
GetRecordResponse.struct_class = Types::GetRecordResponse
|
54
|
+
|
55
|
+
InternalFailure.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
56
|
+
InternalFailure.struct_class = Types::InternalFailure
|
57
|
+
|
58
|
+
PutRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
|
59
|
+
PutRecordRequest.add_member(:record, Shapes::ShapeRef.new(shape: Record, required: true, location_name: "Record"))
|
60
|
+
PutRecordRequest.struct_class = Types::PutRecordRequest
|
61
|
+
|
62
|
+
Record.member = Shapes::ShapeRef.new(shape: FeatureValue)
|
63
|
+
|
64
|
+
ResourceNotFound.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
65
|
+
ResourceNotFound.struct_class = Types::ResourceNotFound
|
66
|
+
|
67
|
+
ServiceUnavailable.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
68
|
+
ServiceUnavailable.struct_class = Types::ServiceUnavailable
|
69
|
+
|
70
|
+
ValidationError.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
71
|
+
ValidationError.struct_class = Types::ValidationError
|
72
|
+
|
73
|
+
|
74
|
+
# @api private
|
75
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
76
|
+
|
77
|
+
api.version = "2020-07-01"
|
78
|
+
|
79
|
+
api.metadata = {
|
80
|
+
"apiVersion" => "2020-07-01",
|
81
|
+
"endpointPrefix" => "featurestore-runtime.sagemaker",
|
82
|
+
"jsonVersion" => "1.1",
|
83
|
+
"protocol" => "rest-json",
|
84
|
+
"serviceFullName" => "Amazon SageMaker Feature Store Runtime",
|
85
|
+
"serviceId" => "SageMaker FeatureStore Runtime",
|
86
|
+
"signatureVersion" => "v4",
|
87
|
+
"signingName" => "sagemaker",
|
88
|
+
"uid" => "sagemaker-featurestore-runtime-2020-07-01",
|
89
|
+
}
|
90
|
+
|
91
|
+
api.add_operation(:delete_record, Seahorse::Model::Operation.new.tap do |o|
|
92
|
+
o.name = "DeleteRecord"
|
93
|
+
o.http_method = "DELETE"
|
94
|
+
o.http_request_uri = "/FeatureGroup/{FeatureGroupName}"
|
95
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteRecordRequest)
|
96
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
97
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationError)
|
98
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
|
99
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
|
100
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessForbidden)
|
101
|
+
end)
|
102
|
+
|
103
|
+
api.add_operation(:get_record, Seahorse::Model::Operation.new.tap do |o|
|
104
|
+
o.name = "GetRecord"
|
105
|
+
o.http_method = "GET"
|
106
|
+
o.http_request_uri = "/FeatureGroup/{FeatureGroupName}"
|
107
|
+
o.input = Shapes::ShapeRef.new(shape: GetRecordRequest)
|
108
|
+
o.output = Shapes::ShapeRef.new(shape: GetRecordResponse)
|
109
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationError)
|
110
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
|
111
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
|
112
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
|
113
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessForbidden)
|
114
|
+
end)
|
115
|
+
|
116
|
+
api.add_operation(:put_record, Seahorse::Model::Operation.new.tap do |o|
|
117
|
+
o.name = "PutRecord"
|
118
|
+
o.http_method = "PUT"
|
119
|
+
o.http_request_uri = "/FeatureGroup/{FeatureGroupName}"
|
120
|
+
o.input = Shapes::ShapeRef.new(shape: PutRecordRequest)
|
121
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
122
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationError)
|
123
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
|
124
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
|
125
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessForbidden)
|
126
|
+
end)
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
File without changes
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SageMakerFeatureStoreRuntime
|
11
|
+
|
12
|
+
# When SageMakerFeatureStoreRuntime returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::SageMakerFeatureStoreRuntime::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all SageMakerFeatureStoreRuntime errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::SageMakerFeatureStoreRuntime::Errors::ServiceError
|
20
|
+
# # rescues all SageMakerFeatureStoreRuntime API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessForbidden}
|
31
|
+
# * {InternalFailure}
|
32
|
+
# * {ResourceNotFound}
|
33
|
+
# * {ServiceUnavailable}
|
34
|
+
# * {ValidationError}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
38
|
+
module Errors
|
39
|
+
|
40
|
+
extend Aws::Errors::DynamicErrors
|
41
|
+
|
42
|
+
class AccessForbidden < ServiceError
|
43
|
+
|
44
|
+
# @param [Seahorse::Client::RequestContext] context
|
45
|
+
# @param [String] message
|
46
|
+
# @param [Aws::SageMakerFeatureStoreRuntime::Types::AccessForbidden] data
|
47
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
48
|
+
super(context, message, data)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @return [String]
|
52
|
+
def message
|
53
|
+
@message || @data[:message]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class InternalFailure < ServiceError
|
58
|
+
|
59
|
+
# @param [Seahorse::Client::RequestContext] context
|
60
|
+
# @param [String] message
|
61
|
+
# @param [Aws::SageMakerFeatureStoreRuntime::Types::InternalFailure] data
|
62
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
63
|
+
super(context, message, data)
|
64
|
+
end
|
65
|
+
|
66
|
+
# @return [String]
|
67
|
+
def message
|
68
|
+
@message || @data[:message]
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
class ResourceNotFound < ServiceError
|
73
|
+
|
74
|
+
# @param [Seahorse::Client::RequestContext] context
|
75
|
+
# @param [String] message
|
76
|
+
# @param [Aws::SageMakerFeatureStoreRuntime::Types::ResourceNotFound] data
|
77
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
78
|
+
super(context, message, data)
|
79
|
+
end
|
80
|
+
|
81
|
+
# @return [String]
|
82
|
+
def message
|
83
|
+
@message || @data[:message]
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
class ServiceUnavailable < ServiceError
|
88
|
+
|
89
|
+
# @param [Seahorse::Client::RequestContext] context
|
90
|
+
# @param [String] message
|
91
|
+
# @param [Aws::SageMakerFeatureStoreRuntime::Types::ServiceUnavailable] data
|
92
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
93
|
+
super(context, message, data)
|
94
|
+
end
|
95
|
+
|
96
|
+
# @return [String]
|
97
|
+
def message
|
98
|
+
@message || @data[:message]
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
class ValidationError < ServiceError
|
103
|
+
|
104
|
+
# @param [Seahorse::Client::RequestContext] context
|
105
|
+
# @param [String] message
|
106
|
+
# @param [Aws::SageMakerFeatureStoreRuntime::Types::ValidationError] data
|
107
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
108
|
+
super(context, message, data)
|
109
|
+
end
|
110
|
+
|
111
|
+
# @return [String]
|
112
|
+
def message
|
113
|
+
@message || @data[:message]
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SageMakerFeatureStoreRuntime
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,226 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SageMakerFeatureStoreRuntime
|
11
|
+
module Types
|
12
|
+
|
13
|
+
# You do not have permission to perform an action.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/AccessForbidden AWS API Documentation
|
19
|
+
#
|
20
|
+
class AccessForbidden < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
26
|
+
# @note When making an API call, you may pass DeleteRecordRequest
|
27
|
+
# data as a hash:
|
28
|
+
#
|
29
|
+
# {
|
30
|
+
# feature_group_name: "FeatureGroupName", # required
|
31
|
+
# record_identifier_value_as_string: "ValueAsString", # required
|
32
|
+
# event_time: "ValueAsString", # required
|
33
|
+
# }
|
34
|
+
#
|
35
|
+
# @!attribute [rw] feature_group_name
|
36
|
+
# The name of the feature group to delete the record from.
|
37
|
+
# @return [String]
|
38
|
+
#
|
39
|
+
# @!attribute [rw] record_identifier_value_as_string
|
40
|
+
# The value for the `RecordIdentifier` that uniquely identifies the
|
41
|
+
# record, in string format.
|
42
|
+
# @return [String]
|
43
|
+
#
|
44
|
+
# @!attribute [rw] event_time
|
45
|
+
# Timestamp indicating when the deletion event occurred. `EventTime`
|
46
|
+
# can be used to query data at a certain point in time.
|
47
|
+
# @return [String]
|
48
|
+
#
|
49
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecordRequest AWS API Documentation
|
50
|
+
#
|
51
|
+
class DeleteRecordRequest < Struct.new(
|
52
|
+
:feature_group_name,
|
53
|
+
:record_identifier_value_as_string,
|
54
|
+
:event_time)
|
55
|
+
SENSITIVE = []
|
56
|
+
include Aws::Structure
|
57
|
+
end
|
58
|
+
|
59
|
+
# The value associated with a feature.
|
60
|
+
#
|
61
|
+
# @note When making an API call, you may pass FeatureValue
|
62
|
+
# data as a hash:
|
63
|
+
#
|
64
|
+
# {
|
65
|
+
# feature_name: "FeatureName", # required
|
66
|
+
# value_as_string: "ValueAsString", # required
|
67
|
+
# }
|
68
|
+
#
|
69
|
+
# @!attribute [rw] feature_name
|
70
|
+
# The name of a feature that a feature value corresponds to.
|
71
|
+
# @return [String]
|
72
|
+
#
|
73
|
+
# @!attribute [rw] value_as_string
|
74
|
+
# The value associated with a feature, in string format. Note that
|
75
|
+
# features types can be String, Integral, or Fractional. This value
|
76
|
+
# represents all three types as a string.
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/FeatureValue AWS API Documentation
|
80
|
+
#
|
81
|
+
class FeatureValue < Struct.new(
|
82
|
+
:feature_name,
|
83
|
+
:value_as_string)
|
84
|
+
SENSITIVE = []
|
85
|
+
include Aws::Structure
|
86
|
+
end
|
87
|
+
|
88
|
+
# @note When making an API call, you may pass GetRecordRequest
|
89
|
+
# data as a hash:
|
90
|
+
#
|
91
|
+
# {
|
92
|
+
# feature_group_name: "FeatureGroupName", # required
|
93
|
+
# record_identifier_value_as_string: "ValueAsString", # required
|
94
|
+
# feature_names: ["FeatureName"],
|
95
|
+
# }
|
96
|
+
#
|
97
|
+
# @!attribute [rw] feature_group_name
|
98
|
+
# The name of the feature group in which you want to put the records.
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @!attribute [rw] record_identifier_value_as_string
|
102
|
+
# The value that corresponds to `RecordIdentifier` type and uniquely
|
103
|
+
# identifies the record in the `FeatureGroup`.
|
104
|
+
# @return [String]
|
105
|
+
#
|
106
|
+
# @!attribute [rw] feature_names
|
107
|
+
# List of names of Features to be retrieved. If not specified, the
|
108
|
+
# latest value for all the Features are returned.
|
109
|
+
# @return [Array<String>]
|
110
|
+
#
|
111
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/GetRecordRequest AWS API Documentation
|
112
|
+
#
|
113
|
+
class GetRecordRequest < Struct.new(
|
114
|
+
:feature_group_name,
|
115
|
+
:record_identifier_value_as_string,
|
116
|
+
:feature_names)
|
117
|
+
SENSITIVE = []
|
118
|
+
include Aws::Structure
|
119
|
+
end
|
120
|
+
|
121
|
+
# @!attribute [rw] record
|
122
|
+
# The record you requested. A list of `FeatureValues`.
|
123
|
+
# @return [Array<Types::FeatureValue>]
|
124
|
+
#
|
125
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/GetRecordResponse AWS API Documentation
|
126
|
+
#
|
127
|
+
class GetRecordResponse < Struct.new(
|
128
|
+
:record)
|
129
|
+
SENSITIVE = []
|
130
|
+
include Aws::Structure
|
131
|
+
end
|
132
|
+
|
133
|
+
# An internal failure occurred. Try your request again. If the problem
|
134
|
+
# persists, contact AWS customer support.
|
135
|
+
#
|
136
|
+
# @!attribute [rw] message
|
137
|
+
# @return [String]
|
138
|
+
#
|
139
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/InternalFailure AWS API Documentation
|
140
|
+
#
|
141
|
+
class InternalFailure < Struct.new(
|
142
|
+
:message)
|
143
|
+
SENSITIVE = []
|
144
|
+
include Aws::Structure
|
145
|
+
end
|
146
|
+
|
147
|
+
# @note When making an API call, you may pass PutRecordRequest
|
148
|
+
# data as a hash:
|
149
|
+
#
|
150
|
+
# {
|
151
|
+
# feature_group_name: "FeatureGroupName", # required
|
152
|
+
# record: [ # required
|
153
|
+
# {
|
154
|
+
# feature_name: "FeatureName", # required
|
155
|
+
# value_as_string: "ValueAsString", # required
|
156
|
+
# },
|
157
|
+
# ],
|
158
|
+
# }
|
159
|
+
#
|
160
|
+
# @!attribute [rw] feature_group_name
|
161
|
+
# The name of the feature group that you want to insert the record
|
162
|
+
# into.
|
163
|
+
# @return [String]
|
164
|
+
#
|
165
|
+
# @!attribute [rw] record
|
166
|
+
# List of FeatureValues to be inserted. This will be a full
|
167
|
+
# over-write. If you only want to update few of the feature values, do
|
168
|
+
# the following:
|
169
|
+
#
|
170
|
+
# * Use `GetRecord` to retrieve the latest record.
|
171
|
+
#
|
172
|
+
# * Update the record returned from `GetRecord`.
|
173
|
+
#
|
174
|
+
# * Use `PutRecord` to update feature values.
|
175
|
+
# @return [Array<Types::FeatureValue>]
|
176
|
+
#
|
177
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/PutRecordRequest AWS API Documentation
|
178
|
+
#
|
179
|
+
class PutRecordRequest < Struct.new(
|
180
|
+
:feature_group_name,
|
181
|
+
:record)
|
182
|
+
SENSITIVE = []
|
183
|
+
include Aws::Structure
|
184
|
+
end
|
185
|
+
|
186
|
+
# A resource that is required to perform an action was not found.
|
187
|
+
#
|
188
|
+
# @!attribute [rw] message
|
189
|
+
# @return [String]
|
190
|
+
#
|
191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/ResourceNotFound AWS API Documentation
|
192
|
+
#
|
193
|
+
class ResourceNotFound < Struct.new(
|
194
|
+
:message)
|
195
|
+
SENSITIVE = []
|
196
|
+
include Aws::Structure
|
197
|
+
end
|
198
|
+
|
199
|
+
# The service is currently unavailable.
|
200
|
+
#
|
201
|
+
# @!attribute [rw] message
|
202
|
+
# @return [String]
|
203
|
+
#
|
204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/ServiceUnavailable AWS API Documentation
|
205
|
+
#
|
206
|
+
class ServiceUnavailable < Struct.new(
|
207
|
+
:message)
|
208
|
+
SENSITIVE = []
|
209
|
+
include Aws::Structure
|
210
|
+
end
|
211
|
+
|
212
|
+
# There was an error validating your request.
|
213
|
+
#
|
214
|
+
# @!attribute [rw] message
|
215
|
+
# @return [String]
|
216
|
+
#
|
217
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/ValidationError AWS API Documentation
|
218
|
+
#
|
219
|
+
class ValidationError < Struct.new(
|
220
|
+
:message)
|
221
|
+
SENSITIVE = []
|
222
|
+
include Aws::Structure
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-sagemakerfeaturestoreruntime
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.109.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.109.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: aws-sigv4
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.1'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.1'
|
47
|
+
description: Official AWS Ruby gem for Amazon SageMaker Feature Store Runtime. This
|
48
|
+
gem is part of the AWS SDK for Ruby.
|
49
|
+
email:
|
50
|
+
- trevrowe@amazon.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime.rb
|
56
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/client.rb
|
57
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/client_api.rb
|
58
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/customizations.rb
|
59
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/errors.rb
|
60
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/resource.rb
|
61
|
+
- lib/aws-sdk-sagemakerfeaturestoreruntime/types.rb
|
62
|
+
homepage: https://github.com/aws/aws-sdk-ruby
|
63
|
+
licenses:
|
64
|
+
- Apache-2.0
|
65
|
+
metadata:
|
66
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerfeaturestoreruntime
|
67
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerfeaturestoreruntime/CHANGELOG.md
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.7.6.2
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: AWS SDK for Ruby - Amazon SageMaker Feature Store Runtime
|
88
|
+
test_files: []
|