Class CfnFeatureGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SageMaker::FeatureGroup.
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 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()))
.build();
-
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 and security configuration forOfflineStore.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnFeatureGroup(Construct scope, String id, CfnFeatureGroupProps props) Create a newAWS::SageMaker::FeatureGroup.protectedCfnFeatureGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFeatureGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA free form description of aFeatureGroup.The name of the feature that stores theEventTimeof a Record in aFeatureGroup.A list ofFeatures.The name of theFeatureGroup.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()Tags used to define aFeatureGroup.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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnFeatureGroupProps props) Create a newAWS::SageMaker::FeatureGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tags used to define aFeatureGroup. -
getEventTimeFeatureName
The name of the feature that stores theEventTimeof a Record in aFeatureGroup.A
EventTimeis point in time when a new event occurs that corresponds to the creation or update of aRecordinFeatureGroup. AllRecordsin theFeatureGroupmust have a correspondingEventTime. -
setEventTimeFeatureName
The name of the feature that stores theEventTimeof a Record in aFeatureGroup.A
EventTimeis point in time when a new event occurs that corresponds to the creation or update of aRecordinFeatureGroup. AllRecordsin theFeatureGroupmust have a correspondingEventTime. -
getFeatureDefinitions
A list ofFeatures. EachFeaturemust include aFeatureNameand aFeatureType.Valid
FeatureTypes areIntegral,FractionalandString.FeatureNames cannot be any of the following:is_deleted,write_time,api_invocation_time.You can create up to 2,500
FeatureDefinitions perFeatureGroup. -
setFeatureDefinitions
A list ofFeatures. EachFeaturemust include aFeatureNameand aFeatureType.Valid
FeatureTypes areIntegral,FractionalandString.FeatureNames cannot be any of the following:is_deleted,write_time,api_invocation_time.You can create up to 2,500
FeatureDefinitions perFeatureGroup. -
setFeatureDefinitions
A list ofFeatures. EachFeaturemust include aFeatureNameand aFeatureType.Valid
FeatureTypes areIntegral,FractionalandString.FeatureNames cannot be any of the following:is_deleted,write_time,api_invocation_time.You can create up to 2,500
FeatureDefinitions perFeatureGroup. -
getFeatureGroupName
The name of theFeatureGroup. -
setFeatureGroupName
The name of theFeatureGroup. -
getOfflineStoreConfig
The configuration of anOfflineStore. -
setOfflineStoreConfig
The configuration of anOfflineStore. -
getOnlineStoreConfig
The configuration of anOnlineStore. -
setOnlineStoreConfig
The configuration of anOnlineStore. -
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. -
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.
-