pub struct Client { /* private fields */ }
Expand description
Client for Amazon SageMaker Feature Store Runtime
Client for invoking operations on Amazon SageMaker Feature Store Runtime. Each operation on Amazon SageMaker Feature Store Runtime is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_sagemakerfeaturestoreruntime::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_sagemakerfeaturestoreruntime::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_sagemakerfeaturestoreruntime::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn batch_get_record(&self) -> BatchGetRecord
pub fn batch_get_record(&self) -> BatchGetRecord
Constructs a fluent builder for the BatchGetRecord
operation.
- The fluent builder is configurable:
identifiers(Vec<BatchGetRecordIdentifier>)
/set_identifiers(Option<Vec<BatchGetRecordIdentifier>>)
:A list of
FeatureGroup
names, with their correspondingRecordIdentifier
value, and Feature name that have been requested to be retrieved in batch.
- On success, responds with
BatchGetRecordOutput
with field(s):records(Option<Vec<BatchGetRecordResultDetail>>)
:A list of Records you requested to be retrieved in batch.
errors(Option<Vec<BatchGetRecordError>>)
:A list of errors that have occured when retrieving a batch of Records.
unprocessed_identifiers(Option<Vec<BatchGetRecordIdentifier>>)
:A unprocessed list of
FeatureGroup
names, with their correspondingRecordIdentifier
value, and Feature name.
- On failure, responds with
SdkError<BatchGetRecordError>
sourcepub fn delete_record(&self) -> DeleteRecord
pub fn delete_record(&self) -> DeleteRecord
Constructs a fluent builder for the DeleteRecord
operation.
- The fluent builder is configurable:
feature_group_name(impl Into<String>)
/set_feature_group_name(Option<String>)
:The name of the feature group to delete the record from.
record_identifier_value_as_string(impl Into<String>)
/set_record_identifier_value_as_string(Option<String>)
:The value for the
RecordIdentifier
that uniquely identifies the record, in string format.event_time(impl Into<String>)
/set_event_time(Option<String>)
:Timestamp indicating when the deletion event occurred.
EventTime
can be used to query data at a certain point in time.
- On success, responds with
DeleteRecordOutput
- On failure, responds with
SdkError<DeleteRecordError>
sourcepub fn get_record(&self) -> GetRecord
pub fn get_record(&self) -> GetRecord
Constructs a fluent builder for the GetRecord
operation.
- The fluent builder is configurable:
feature_group_name(impl Into<String>)
/set_feature_group_name(Option<String>)
:The name of the feature group in which you want to put the records.
record_identifier_value_as_string(impl Into<String>)
/set_record_identifier_value_as_string(Option<String>)
:The value that corresponds to
RecordIdentifier
type and uniquely identifies the record in theFeatureGroup
.feature_names(Vec<String>)
/set_feature_names(Option<Vec<String>>)
:List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.
- On success, responds with
GetRecordOutput
with field(s):record(Option<Vec<FeatureValue>>)
:The record you requested. A list of
FeatureValues
.
- On failure, responds with
SdkError<GetRecordError>
sourcepub fn put_record(&self) -> PutRecord
pub fn put_record(&self) -> PutRecord
Constructs a fluent builder for the PutRecord
operation.
- The fluent builder is configurable:
feature_group_name(impl Into<String>)
/set_feature_group_name(Option<String>)
:The name of the feature group that you want to insert the record into.
record(Vec<FeatureValue>)
/set_record(Option<Vec<FeatureValue>>)
:List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:
-
Use
GetRecord
to retrieve the latest record. -
Update the record returned from
GetRecord
. -
Use
PutRecord
to update feature values.
-
- On success, responds with
PutRecordOutput
- On failure, responds with
SdkError<PutRecordError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Selfwhere
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Selfwhere
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.