Class CfnFeatureGroup
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IFeatureGroupRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 AWS service quotas to see the FeatureGroup s quota for your AWS account.
You must include at least one of
OnlineStoreConfigandOfflineStoreConfigto create aFeatureGroup.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
Object offlineStoreConfig;
Object onlineStoreConfig;
CfnFeatureGroup cfnFeatureGroup = CfnFeatureGroup.Builder.create(this, "MyCfnFeatureGroup")
.eventTimeFeatureName("eventTimeFeatureName")
.featureDefinitions(List.of(FeatureDefinitionProperty.builder()
.featureName("featureName")
.featureType("featureType")
.build()))
.featureGroupName("featureGroupName")
.recordIdentifierFeatureName("recordIdentifierFeatureName")
// the properties below are optional
.description("description")
.offlineStoreConfig(offlineStoreConfig)
.onlineStoreConfig(onlineStoreConfig)
.roleArn("roleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.throughputConfig(ThroughputConfigProperty.builder()
.throughputMode("throughputMode")
// the properties below are optional
.provisionedReadCapacityUnits(123)
.provisionedWriteCapacityUnits(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFeatureGroup.static interfaceThe meta data of the Glue table which serves as data catalog for theOfflineStore.static interfaceA list of features.static interfaceThe configuration of anOfflineStore.static interfaceUse this to specify the AWS Key Management Service (KMS) Key ID, orKMSKeyId, for at rest data encryption.static interfaceThe security configuration forOnlineStore.static interfaceThe Amazon Simple Storage (Amazon S3) location and security configuration forOfflineStore.static interfaceUsed to set feature group throughput configuration.static interfaceTime to live duration, where the record is hard deleted after the expiration time is reached;Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IFeatureGroupRef
IFeatureGroupRef.Jsii$Default, IFeatureGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFeatureGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFeatureGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnFeatureGroup(software.constructs.Construct scope, String id, CfnFeatureGroupProps props) Create a newAWS::SageMaker::FeatureGroup. -
Method Summary
Modifier and TypeMethodDescriptionstatic IFeatureGroupReffromFeatureGroupName(software.constructs.Construct scope, String id, String featureGroupName) Creates a new IFeatureGroupRef from a featureGroupName.The time aFeatureGroupwas created.AFeatureGroupstatus.A free form description of aFeatureGroup.The name of the feature that stores theEventTimeof a Record in aFeatureGroup.A list ofFeatures.The name of theFeatureGroup.A reference to a FeatureGroup resource.The configuration of anOfflineStore.The configuration of anOnlineStore.The name of theFeaturewhose value uniquely identifies aRecorddefined in theFeatureGroupFeatureDefinitions.The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.getTags()Tag Manager which manages the tags for this resource.Tags used to define aFeatureGroup.Used to set feature group throughput configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A free form description of aFeatureGroup.voidsetEventTimeFeatureName(String value) The name of the feature that stores theEventTimeof a Record in aFeatureGroup.voidsetFeatureDefinitions(List<Object> value) A list ofFeatures.voidsetFeatureDefinitions(IResolvable value) A list ofFeatures.voidsetFeatureGroupName(String value) The name of theFeatureGroup.voidsetOfflineStoreConfig(Object value) The configuration of anOfflineStore.voidsetOnlineStoreConfig(Object value) The configuration of anOnlineStore.voidThe name of theFeaturewhose value uniquely identifies aRecorddefined in theFeatureGroupFeatureDefinitions.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.voidsetTagsRaw(List<CfnTag> value) Tags used to define aFeatureGroup.voidsetThroughputConfig(IResolvable value) Used to set feature group throughput configuration.voidUsed to set feature group throughput configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFeatureGroup
protected CfnFeatureGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFeatureGroup
protected CfnFeatureGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFeatureGroup
@Stability(Stable) public CfnFeatureGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFeatureGroupProps props) Create a newAWS::SageMaker::FeatureGroup.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromFeatureGroupName
@Stability(Stable) @NotNull public static IFeatureGroupRef fromFeatureGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String featureGroupName) Creates a new IFeatureGroupRef from a featureGroupName.- Parameters:
scope- This parameter is required.id- This parameter is required.featureGroupName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
The time aFeatureGroupwas created. -
getAttrFeatureGroupStatus
AFeatureGroupstatus. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFeatureGroupRef
A reference to a FeatureGroup resource.- Specified by:
getFeatureGroupRefin interfaceIFeatureGroupRef
-
getTags
Tag Manager which manages the tags for this resource. -
getEventTimeFeatureName
The name of the feature that stores theEventTimeof a Record in aFeatureGroup. -
setEventTimeFeatureName
The name of the feature that stores theEventTimeof a Record in aFeatureGroup. -
getFeatureDefinitions
A list ofFeatures.Each
Featuremust include aFeatureNameand aFeatureType.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFeatureGroup.FeatureDefinitionProperty> -
setFeatureDefinitions
A list ofFeatures.Each
Featuremust include aFeatureNameand aFeatureType. -
setFeatureDefinitions
A list ofFeatures.Each
Featuremust include aFeatureNameand aFeatureType. -
getFeatureGroupName
The name of theFeatureGroup. -
setFeatureGroupName
The name of theFeatureGroup. -
getRecordIdentifierFeatureName
The name of theFeaturewhose value uniquely identifies aRecorddefined in theFeatureGroupFeatureDefinitions. -
setRecordIdentifierFeatureName
The name of theFeaturewhose value uniquely identifies aRecorddefined in theFeatureGroupFeatureDefinitions. -
getDescription
A free form description of aFeatureGroup. -
setDescription
A free form description of aFeatureGroup. -
getOfflineStoreConfig
The configuration of anOfflineStore. -
setOfflineStoreConfig
The configuration of anOfflineStore. -
getOnlineStoreConfig
The configuration of anOnlineStore. -
setOnlineStoreConfig
The configuration of anOnlineStore. -
getRoleArn
The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group. -
setRoleArn
The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group. -
getTagsRaw
Tags used to define aFeatureGroup. -
setTagsRaw
Tags used to define aFeatureGroup. -
getThroughputConfig
Used to set feature group throughput configuration.Returns union: either
IResolvableorCfnFeatureGroup.ThroughputConfigProperty -
setThroughputConfig
Used to set feature group throughput configuration. -
setThroughputConfig
@Stability(Stable) public void setThroughputConfig(@Nullable CfnFeatureGroup.ThroughputConfigProperty value) Used to set feature group throughput configuration.
-