aws_sdk_sagemakerfeaturestoreruntime/client/put_record.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`PutRecord`](crate::operation::put_record::builders::PutRecordFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`feature_group_name(impl Into<String>)`](crate::operation::put_record::builders::PutRecordFluentBuilder::feature_group_name) / [`set_feature_group_name(Option<String>)`](crate::operation::put_record::builders::PutRecordFluentBuilder::set_feature_group_name):<br>required: **true**<br><p>The name or Amazon Resource Name (ARN) of the feature group that you want to insert the record into.</p><br>
7 /// - [`record(FeatureValue)`](crate::operation::put_record::builders::PutRecordFluentBuilder::record) / [`set_record(Option<Vec::<FeatureValue>>)`](crate::operation::put_record::builders::PutRecordFluentBuilder::set_record):<br>required: **true**<br><p>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:</p> <ul> <li> <p>Use <code>GetRecord</code> to retrieve the latest record.</p></li> <li> <p>Update the record returned from <code>GetRecord</code>.</p></li> <li> <p>Use <code>PutRecord</code> to update feature values.</p></li> </ul><br>
8 /// - [`target_stores(TargetStore)`](crate::operation::put_record::builders::PutRecordFluentBuilder::target_stores) / [`set_target_stores(Option<Vec::<TargetStore>>)`](crate::operation::put_record::builders::PutRecordFluentBuilder::set_target_stores):<br>required: **false**<br><p>A list of stores to which you're adding the record. By default, Feature Store adds the record to all of the stores that you're using for the <code>FeatureGroup</code>.</p><br>
9 /// - [`ttl_duration(TtlDuration)`](crate::operation::put_record::builders::PutRecordFluentBuilder::ttl_duration) / [`set_ttl_duration(Option<TtlDuration>)`](crate::operation::put_record::builders::PutRecordFluentBuilder::set_ttl_duration):<br>required: **false**<br><p>Time to live duration, where the record is hard deleted after the expiration time is reached; <code>ExpiresAt</code> = <code>EventTime</code> + <code>TtlDuration</code>. For information on HardDelete, see the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_DeleteRecord.html">DeleteRecord</a> API in the Amazon SageMaker API Reference guide.</p><br>
10 /// - On success, responds with [`PutRecordOutput`](crate::operation::put_record::PutRecordOutput)
11 /// - On failure, responds with [`SdkError<PutRecordError>`](crate::operation::put_record::PutRecordError)
12 pub fn put_record(&self) -> crate::operation::put_record::builders::PutRecordFluentBuilder {
13 crate::operation::put_record::builders::PutRecordFluentBuilder::new(self.handle.clone())
14 }
15}