Create a new FeatureGroup. A FeatureGroup is a group of Features defined in the FeatureStore to describe a Record.
See https://www.paws-r-sdk.com/docs/sagemaker_create_feature_group/ for full documentation.
Usage
sagemaker_create_feature_group(
FeatureGroupName,
RecordIdentifierFeatureName,
EventTimeFeatureName,
FeatureDefinitions,
OnlineStoreConfig = NULL,
OfflineStoreConfig = NULL,
ThroughputConfig = NULL,
RoleArn = NULL,
Description = NULL,
Tags = NULL
)Arguments
- FeatureGroupName
[required] 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.
- RecordIdentifierFeatureName
[required] 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.
- EventTimeFeatureName
[required] 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.
- FeatureDefinitions
[required] 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.- OnlineStoreConfig
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.- OfflineStoreConfig
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.
- ThroughputConfig
Used to set feature group throughput configuration. There are two modes:
ON_DEMANDandPROVISIONED. With on-demand mode, you are charged for data reads and writes that your application performs on your feature group. You do not need to specify read and write throughput because Feature Store accommodates your workloads as they ramp up and down. You can switch a feature group to on-demand only once in a 24 hour period. With provisioned throughput mode, you specify the read and write capacity per second that you expect your application to require, and you are billed based on those limits. Exceeding provisioned throughput will result in your requests being throttled.Note:
PROVISIONEDthroughput mode is supported only for feature groups that are offline-only, or use theStandardtier online store.- RoleArn
The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the
OfflineStoreif anOfflineStoreConfigis provided.- Description
A free-form description of a
FeatureGroup.Tags used to identify
Featuresin eachFeatureGroup.