Class CfnFeatureGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:57.847Z") @Stability(Stable) public class CfnFeatureGroup extends CfnResource implements IInspectable, ITaggable
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 OnlineStoreConfig and OfflineStoreConfig to create a FeatureGroup .

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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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)
      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

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The time a FeatureGroup was created.
    • getAttrFeatureGroupStatus

      @Stability(Stable) @NotNull public String getAttrFeatureGroupStatus()
      A FeatureGroup status.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getEventTimeFeatureName

      @Stability(Stable) @NotNull public String getEventTimeFeatureName()
      The name of the feature that stores the EventTime of a Record in a FeatureGroup .
    • setEventTimeFeatureName

      @Stability(Stable) public void setEventTimeFeatureName(@NotNull String value)
      The name of the feature that stores the EventTime of a Record in a FeatureGroup .
    • getFeatureDefinitions

      @Stability(Stable) @NotNull public Object getFeatureDefinitions()
      A list of Feature s.

      Each Feature must include a FeatureName and a FeatureType .

    • setFeatureDefinitions

      @Stability(Stable) public void setFeatureDefinitions(@NotNull IResolvable value)
      A list of Feature s.

      Each Feature must include a FeatureName and a FeatureType .

    • setFeatureDefinitions

      @Stability(Stable) public void setFeatureDefinitions(@NotNull List<Object> value)
      A list of Feature s.

      Each Feature must include a FeatureName and a FeatureType .

    • getFeatureGroupName

      @Stability(Stable) @NotNull public String getFeatureGroupName()
      The name of the FeatureGroup .
    • setFeatureGroupName

      @Stability(Stable) public void setFeatureGroupName(@NotNull String value)
      The name of the FeatureGroup .
    • getRecordIdentifierFeatureName

      @Stability(Stable) @NotNull public String getRecordIdentifierFeatureName()
      The name of the Feature whose value uniquely identifies a Record defined in the FeatureGroup FeatureDefinitions .
    • setRecordIdentifierFeatureName

      @Stability(Stable) public void setRecordIdentifierFeatureName(@NotNull String value)
      The name of the Feature whose value uniquely identifies a Record defined in the FeatureGroup FeatureDefinitions .
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A free form description of a FeatureGroup .
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A free form description of a FeatureGroup .
    • getOfflineStoreConfig

      @Stability(Stable) @Nullable public Object getOfflineStoreConfig()
      The configuration of an OfflineStore .
    • setOfflineStoreConfig

      @Stability(Stable) public void setOfflineStoreConfig(@Nullable Object value)
      The configuration of an OfflineStore .
    • getOnlineStoreConfig

      @Stability(Stable) @Nullable public Object getOnlineStoreConfig()
      The configuration of an OnlineStore .
    • setOnlineStoreConfig

      @Stability(Stable) public void setOnlineStoreConfig(@Nullable Object value)
      The configuration of an OnlineStore .
    • getRoleArn

      @Stability(Stable) @Nullable public String getRoleArn()
      The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the IAM execution role used to create the feature group.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Tags used to define a FeatureGroup .
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Tags used to define a FeatureGroup .
    • getThroughputConfig

      @Stability(Stable) @Nullable public Object getThroughputConfig()
      Used to set feature group throughput configuration.
    • setThroughputConfig

      @Stability(Stable) public void setThroughputConfig(@Nullable IResolvable value)
      Used to set feature group throughput configuration.
    • setThroughputConfig

      @Stability(Stable) public void setThroughputConfig(@Nullable CfnFeatureGroup.ThroughputConfigProperty value)
      Used to set feature group throughput configuration.