SageMaker / Client / update_feature_group
update_feature_group#
- SageMaker.Client.update_feature_group(**kwargs)#
Updates the feature group by either adding features or updating the online store configuration. Use one of the following request parameters at a time while using the
UpdateFeatureGroupAPI.You can add features for your feature group using the
FeatureAdditionsrequest parameter. Features cannot be removed from a feature group.You can update the online store configuration by using the
OnlineStoreConfigrequest parameter. If aTtlDurationis specified, the defaultTtlDurationapplies for all records added to the feature group after the feature group is updated. If a record levelTtlDurationexists from using thePutRecordAPI, the record levelTtlDurationapplies to that record instead of the defaultTtlDuration.See also: AWS API Documentation
Request Syntax
response = client.update_feature_group( FeatureGroupName='string', FeatureAdditions=[ { 'FeatureName': 'string', 'FeatureType': 'Integral'|'Fractional'|'String' }, ], OnlineStoreConfig={ 'TtlDuration': { 'Unit': 'Seconds'|'Minutes'|'Hours'|'Days'|'Weeks', 'Value': 123 } } )
- Parameters:
FeatureGroupName (string) –
[REQUIRED]
The name or Amazon Resource Name (ARN) of the feature group that you’re updating.
FeatureAdditions (list) –
Updates the feature group. Updating a feature group is an asynchronous operation. When you get an HTTP 200 response, you’ve made a valid request. It takes some time after you’ve made a valid request for Feature Store to update the feature group.
(dict) –
A list of features. You must include
FeatureNameandFeatureType. Valid featureFeatureType``s are ``Integral,FractionalandString.FeatureName (string) –
The name of a feature. The type must be a string.
FeatureNamecannot be any of the following:is_deleted,write_time,api_invocation_time.FeatureType (string) –
The value type of a feature. Valid values are Integral, Fractional, or String.
OnlineStoreConfig (dict) –
Updates the feature group online store configuration.
TtlDuration (dict) –
Time to live duration, where the record is hard deleted after the expiration time is reached;
ExpiresAt=EventTime+TtlDuration. For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.Unit (string) –
TtlDurationtime unit.Value (integer) –
TtlDurationtime value.
- Return type:
dict
- Returns:
Response Syntax
{ 'FeatureGroupArn': 'string' }
Response Structure
(dict) –
FeatureGroupArn (string) –
The Amazon Resource Number (ARN) of the feature group that you’re updating.
Exceptions
SageMaker.Client.exceptions.ResourceNotFound