pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
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>
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>
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>
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>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more