@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.897Z") @Stability(value=Stable) public class CfnFeatureGroup extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnFeatureGroup.Builder
A fluent builder for
CfnFeatureGroup. |
static interface |
CfnFeatureGroup.FeatureDefinitionProperty
A list of features.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFeatureGroup(software.constructs.Construct scope,
String id,
CfnFeatureGroupProps props)
Create a new `AWS::SageMaker::FeatureGroup`.
|
protected |
CfnFeatureGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFeatureGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A free form description of a `FeatureGroup` .
|
String |
getEventTimeFeatureName()
The name of the feature that stores the `EventTime` of a Record in a `FeatureGroup` .
|
Object |
getFeatureDefinitions()
A list of `Feature` s.
|
String |
getFeatureGroupName()
The name of the `FeatureGroup` .
|
Object |
getOfflineStoreConfig()
The configuration of an `OfflineStore` .
|
Object |
getOnlineStoreConfig()
The configuration of an `OnlineStore` .
|
String |
getRecordIdentifierFeatureName()
The name of the `Feature` whose value uniquely identifies a `Record` defined in the `FeatureGroup` `FeatureDefinitions` .
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.
|
TagManager |
getTags()
Tags used to define a `FeatureGroup` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A free form description of a `FeatureGroup` .
|
void |
setEventTimeFeatureName(String value)
The name of the feature that stores the `EventTime` of a Record in a `FeatureGroup` .
|
void |
setFeatureDefinitions(IResolvable value)
A list of `Feature` s.
|
void |
setFeatureDefinitions(List<Object> value)
A list of `Feature` s.
|
void |
setFeatureGroupName(String value)
The name of the `FeatureGroup` .
|
void |
setOfflineStoreConfig(Object value)
The configuration of an `OfflineStore` .
|
void |
setOnlineStoreConfig(Object value)
The configuration of an `OnlineStore` .
|
void |
setRecordIdentifierFeatureName(String value)
The name of the `Feature` whose value uniquely identifies a `Record` defined in the `FeatureGroup` `FeatureDefinitions` .
|
void |
setRoleArn(String value)
The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFeatureGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFeatureGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFeatureGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFeatureGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getEventTimeFeatureName()
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 .
@Stability(value=Stable)
public void setEventTimeFeatureName(@NotNull
String value)
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 .
@Stability(value=Stable) @NotNull public Object getFeatureDefinitions()
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 .
@Stability(value=Stable)
public void setFeatureDefinitions(@NotNull
IResolvable value)
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 .
@Stability(value=Stable)
public void setFeatureDefinitions(@NotNull
List<Object> value)
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 .
@Stability(value=Stable) @NotNull public String getFeatureGroupName()
@Stability(value=Stable)
public void setFeatureGroupName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getOfflineStoreConfig()
@Stability(value=Stable)
public void setOfflineStoreConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public Object getOnlineStoreConfig()
@Stability(value=Stable)
public void setOnlineStoreConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getRecordIdentifierFeatureName()
@Stability(value=Stable)
public void setRecordIdentifierFeatureName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRoleArn()
@Stability(value=Stable)
public void setRoleArn(@Nullable
String value)
Copyright © 2022. All rights reserved.