AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The PutRecord
API is used to ingest a list of Records
into your feature
group.
If a new record’s EventTime
is greater, the new record is written to both the
OnlineStore
and OfflineStore
. Otherwise, the record is a historic record
and it is written only to the OfflineStore
.
You can specify the ingestion to be applied to the OnlineStore
, OfflineStore
,
or both by using the TargetStores
request parameter.
You can set the ingested record to expire at a given time to live (TTL) duration after
the record’s event time, ExpiresAt
= EventTime
+ TtlDuration
,
by specifying the TtlDuration
parameter. A record level TtlDuration
is set when specifying the TtlDuration
parameter using the PutRecord
API call. If the input TtlDuration
is null
or unspecified, TtlDuration
is set to the default feature group level TtlDuration
. A record level TtlDuration
supersedes the group level TtlDuration
.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginPutRecord and EndPutRecord.
Namespace: Amazon.SageMakerFeatureStoreRuntime
Assembly: AWSSDK.SageMakerFeatureStoreRuntime.dll
Version: 3.x.y.z
public virtual Task<PutRecordResponse> PutRecordAsync( PutRecordRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the PutRecord service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
AccessForbiddenException | You do not have permission to perform an action. |
InternalFailureException | An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support. |
ServiceUnavailableException | The service is currently unavailable. |
ValidationErrorException | There was an error validating your request. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer