CfnFeatureGroupProps Struct
Properties for defining a CfnFeatureGroup.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
declare const offlineStoreConfig: any;
declare const onlineStoreConfig: any;
const cfnFeatureGroupProps: sagemaker.CfnFeatureGroupProps = {
eventTimeFeatureName: 'eventTimeFeatureName',
featureDefinitions: [{
featureName: 'featureName',
featureType: 'featureType',
}],
featureGroupName: 'featureGroupName',
recordIdentifierFeatureName: 'recordIdentifierFeatureName',
// the properties below are optional
description: 'description',
offlineStoreConfig: offlineStoreConfig,
onlineStoreConfig: onlineStoreConfig,
roleArn: 'roleArn',
tags: [{
key: 'key',
value: 'value',
}],
throughputConfig: {
throughputMode: 'throughputMode',
// the properties below are optional
provisionedReadCapacityUnits: 123,
provisionedWriteCapacityUnits: 123,
},
};
Properties
eventTimeFeatureNamestringevent_time_feature_namestreventTimeFeatureNameStringEventTimeFeatureNamestringEventTimeFeatureName*stringrequired#A EventTime is point in time when a new event occurs that corresponds to the creation or update of a Record in FeatureGroup . All Records in the FeatureGroup must have a corresponding EventTime .
featureDefinitionsIResolvable | IResolvable | CfnFeatureGroup.FeatureDefinitionProperty[]feature_definitionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FeatureDefinitionProperty]]]featureDefinitionsIResolvableFeatureDefinitionsIResolvableFeatureDefinitionsinterface{}required#Valid FeatureType s are Integral , Fractional and String .
FeatureName s cannot be any of the following: is_deleted , write_time , api_invocation_time .
You can create up to 2,500 FeatureDefinition s per FeatureGroup .
featureGroupNamestringfeature_group_namestrfeatureGroupNameStringFeatureGroupNamestringFeatureGroupName*stringrequired#offlineStoreConfiganyoffline_store_configAnyofflineStoreConfigObjectOfflineStoreConfigobjectOfflineStoreConfiginterface{}#onlineStoreConfiganyonline_store_configAnyonlineStoreConfigObjectOnlineStoreConfigobjectOnlineStoreConfiginterface{}#recordIdentifierFeatureNamestringrecord_identifier_feature_namestrrecordIdentifierFeatureNameStringRecordIdentifierFeatureNamestringRecordIdentifierFeatureName*stringrequired#roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{}#throughputConfigIResolvable | CfnFeatureGroup.ThroughputConfigPropertythroughput_configtyping.Union[IResolvable, ThroughputConfigProperty]throughputConfigIResolvableThroughputConfigIResolvableThroughputConfiginterface{}#notes
There are two modes: ON_DEMAND and PROVISIONED . 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: PROVISIONED throughput mode is supported only for feature groups that are offline-only, or use the Standard tier online store.