create_feature_group
async
¶
create_feature_group(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
feature_group_name: Optional[FeatureGroupName] = None,
record_identifier_feature_name: Optional[FeatureName] = None,
event_time_feature_name: Optional[FeatureName] = None,
feature_definitions: Optional[FeatureDefinitions] = None,
online_store_config: Optional[OnlineStoreConfig] = None,
offline_store_config: Optional[OfflineStoreConfig] = None,
throughput_config: Optional[ThroughputConfig] = None,
role_arn: Optional[RoleArn] = None,
description: Optional[Description] = None,
tags: Optional[TagList] = None,
) -> CreateFeatureGroupResponse
Create a new FeatureGroup. A FeatureGroup is a group of Features defined in the FeatureStore to describe a Record.
The FeatureGroup defines the schema and features contained in the FeatureGroup. A FeatureGroup definition is composed of a list of Features, a RecordIdentifierFeatureName, an EventTimeFeatureName and configurations for its OnlineStore and OfflineStore. Check Amazon Web Services service quotas to see the FeatureGroups quota for your Amazon Web Services account.
Note that it can take approximately 10-15 minutes to provision an OnlineStore FeatureGroup with the InMemory StorageType.
You must include at least one of OnlineStoreConfig and OfflineStoreConfig to create a FeatureGroup.
Parameters:
-
feature_group_name(Optional[FeatureGroupName], default:None) –The name of the
FeatureGroup. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.The name:
-
Must start with an alphanumeric character.
-
Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.
-
-
record_identifier_feature_name(Optional[FeatureName], default:None) –The name of the
Featurewhose value uniquely identifies aRecorddefined in theFeatureStore. Only the latest record per identifier value will be stored in theOnlineStore.RecordIdentifierFeatureNamemust be one of feature definitions' names.You use the
RecordIdentifierFeatureNameto access data in aFeatureStore.This name:
-
Must start with an alphanumeric character.
-
Can only contains alphanumeric characters, hyphens, underscores. Spaces are not allowed.
-
-
event_time_feature_name(Optional[FeatureName], default:None) –The name of the feature that stores the
EventTimeof aRecordin aFeatureGroup.An
EventTimeis a point in time when a new event occurs that corresponds to the creation or update of aRecordin aFeatureGroup. AllRecordsin theFeatureGroupmust have a correspondingEventTime.An
EventTimecan be aStringorFractional.-
Fractional:EventTimefeature values must be a Unix timestamp in seconds. -
String:EventTimefeature values must be an ISO-8601 string in the format. The following formats are supportedyyyy-MM-dd'T'HH:mm:ssZandyyyy-MM-dd'T'HH:mm:ss.SSSZwhereyyyy,MM, andddrepresent the year, month, and day respectively andHH,mm,ss, and if applicable,SSSrepresent the hour, month, second and milliseconds respsectively.'T'andZare constants.
-
-
feature_definitions(Optional[FeatureDefinitions], default:None) –A list of
Featurenames and types.NameandTypeis compulsory perFeature.Valid feature
FeatureTypes areIntegral,FractionalandString.FeatureNames cannot be any of the following:is_deleted,write_time,api_invocation_timeYou can create up to 2,500
FeatureDefinitions perFeatureGroup. -
online_store_config(Optional[OnlineStoreConfig], default:None) –You can turn the
OnlineStoreon or off by specifyingTruefor theEnableOnlineStoreflag inOnlineStoreConfig.You can also include an Amazon Web Services KMS key ID (
KMSKeyId) for at-rest encryption of theOnlineStore.The default value is
False. -
offline_store_config(Optional[OfflineStoreConfig], default:None) –Use this to configure an
OfflineFeatureStore. This parameter allows you to specify:-
The Amazon Simple Storage Service (Amazon S3) location of an
OfflineStore. -
A configuration for an Amazon Web Services Glue or Amazon Web Services Hive data catalog.
-
An KMS encryption key to encrypt the Amazon S3 location used for
OfflineStore. If KMS encryption key is not specified, by default we encrypt all data at rest using Amazon Web Services KMS key. By defining your bucket-level key for SSE, you can reduce Amazon Web Services KMS requests costs by up to 99 percent. -
Format for the offline store table. Supported formats are Glue (Default) and Apache Iceberg.
To learn more about this parameter, see OfflineStoreConfig.
-
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the
OfflineStoreif anOfflineStoreConfigis provided. -
description(Optional[Description], default:None) –A free-form description of a
FeatureGroup. -
tags(Optional[TagList], default:None) –Tags used to identify
Featuresin eachFeatureGroup.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 | |