aws_sdk_sagemakerfeaturestoreruntime/client/
get_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 [`GetRecord`](crate::operation::get_record::builders::GetRecordFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`feature_group_name(impl Into<String>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::feature_group_name) / [`set_feature_group_name(Option<String>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::set_feature_group_name):<br>required: **true**<br><p>The name or Amazon Resource Name (ARN) of the feature group from which you want to retrieve a record.</p><br>
7    ///   - [`record_identifier_value_as_string(impl Into<String>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::record_identifier_value_as_string) / [`set_record_identifier_value_as_string(Option<String>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::set_record_identifier_value_as_string):<br>required: **true**<br><p>The value that corresponds to <code>RecordIdentifier</code> type and uniquely identifies the record in the <code>FeatureGroup</code>.</p><br>
8    ///   - [`feature_names(impl Into<String>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::feature_names) / [`set_feature_names(Option<Vec::<String>>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::set_feature_names):<br>required: **false**<br><p>List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.</p><br>
9    ///   - [`expiration_time_response(ExpirationTimeResponse)`](crate::operation::get_record::builders::GetRecordFluentBuilder::expiration_time_response) / [`set_expiration_time_response(Option<ExpirationTimeResponse>)`](crate::operation::get_record::builders::GetRecordFluentBuilder::set_expiration_time_response):<br>required: **false**<br><p>Parameter to request <code>ExpiresAt</code> in response. If <code>Enabled</code>, <code>GetRecord</code> will return the value of <code>ExpiresAt</code>, if it is not null. If <code>Disabled</code> and null, <code>GetRecord</code> will return null.</p><br>
10    /// - On success, responds with [`GetRecordOutput`](crate::operation::get_record::GetRecordOutput) with field(s):
11    ///   - [`record(Option<Vec::<FeatureValue>>)`](crate::operation::get_record::GetRecordOutput::record): <p>The record you requested. A list of <code>FeatureValues</code>.</p>
12    ///   - [`expires_at(Option<String>)`](crate::operation::get_record::GetRecordOutput::expires_at): <p>The <code>ExpiresAt</code> ISO string of the requested record.</p>
13    /// - On failure, responds with [`SdkError<GetRecordError>`](crate::operation::get_record::GetRecordError)
14    pub fn get_record(&self) -> crate::operation::get_record::builders::GetRecordFluentBuilder {
15        crate::operation::get_record::builders::GetRecordFluentBuilder::new(self.handle.clone())
16    }
17}