@@ -5679,6 +5679,7 @@ def create_feature_group(
56795679 role_arn : str = None ,
56805680 online_store_config : Dict [str , str ] = None ,
56815681 offline_store_config : Dict [str , str ] = None ,
5682+ throughput_config : Dict [str , Any ] = None ,
56825683 description : str = None ,
56835684 tags : Optional [Tags ] = None ,
56845685 ) -> Dict [str , Any ]:
@@ -5694,6 +5695,8 @@ def create_feature_group(
56945695 feature online store.
56955696 offline_store_config (Dict[str, str]): dict contains configuration of the
56965697 feature offline store.
5698+ throughput_config (Dict[str, str]): dict contains throughput configuration
5699+ for the feature group.
56975700 description (str): description of the FeatureGroup.
56985701 tags (Optional[Tags]): tags for labeling a FeatureGroup.
56995702
@@ -5729,6 +5732,7 @@ def create_feature_group(
57295732 kwargs ,
57305733 OnlineStoreConfig = inferred_online_store_from_config ,
57315734 OfflineStoreConfig = inferred_offline_store_from_config ,
5735+ ThroughputConfig = throughput_config ,
57325736 Description = description ,
57335737 Tags = tags ,
57345738 )
@@ -5757,28 +5761,32 @@ def update_feature_group(
57575761 feature_group_name : str ,
57585762 feature_additions : Sequence [Dict [str , str ]] = None ,
57595763 online_store_config : Dict [str , any ] = None ,
5764+ throughput_config : Dict [str , Any ] = None ,
57605765 ) -> Dict [str , Any ]:
57615766 """Update a FeatureGroup
57625767
5763- either adding new features from the given feature definitions
5764- or updating online store config
5768+ Supports modifications like adding new features from the given feature definitions,
5769+ updating online store and throughput configurations.
57655770
57665771 Args:
57675772 feature_group_name (str): name of the FeatureGroup to update.
57685773 feature_additions (Sequence[Dict[str, str]): list of feature definitions to be updated.
5774+ online_store_config (Dict[str, Any]): updates to online store config
5775+ throughput_config (Dict[str, Any]): target throughput configuration of the feature group
57695776 Returns:
57705777 Response dict from service.
57715778 """
5779+ update_req = {"FeatureGroupName" : feature_group_name }
5780+ if online_store_config is not None :
5781+ update_req ["OnlineStoreConfig" ] = online_store_config
57725782
5773- if feature_additions is None :
5774- return self .sagemaker_client .update_feature_group (
5775- FeatureGroupName = feature_group_name ,
5776- OnlineStoreConfig = online_store_config ,
5777- )
5783+ if throughput_config is not None :
5784+ update_req ["ThroughputConfig" ] = throughput_config
57785785
5779- return self .sagemaker_client .update_feature_group (
5780- FeatureGroupName = feature_group_name , FeatureAdditions = feature_additions
5781- )
5786+ if feature_additions is not None :
5787+ update_req ["FeatureAdditions" ] = feature_additions
5788+
5789+ return self .sagemaker_client .update_feature_group (** update_req )
57825790
57835791 def list_feature_groups (
57845792 self ,
0 commit comments