FeatureGroupArgs

data class FeatureGroupArgs(val description: Output<String>? = null, val eventTimeFeatureName: Output<String>? = null, val featureDefinitions: Output<List<FeatureGroupFeatureDefinitionArgs>>? = null, val featureGroupName: Output<String>? = null, val offlineStoreConfig: Output<FeatureGroupOfflineStoreConfigArgs>? = null, val onlineStoreConfig: Output<FeatureGroupOnlineStoreConfigArgs>? = null, val recordIdentifierFeatureName: Output<String>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val throughputConfig: Output<FeatureGroupThroughputConfigArgs>? = null) : ConvertibleToJava<FeatureGroupArgs>

Provides a SageMaker AI Feature Group resource.

Example Usage

Basic usage:

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.FeatureGroup("example", {
featureGroupName: "example",
recordIdentifierFeatureName: "example",
eventTimeFeatureName: "example",
roleArn: test.arn,
featureDefinitions: [{
featureName: "example",
featureType: "String",
}],
onlineStoreConfig: {
enableOnlineStore: true,
},
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.FeatureGroup("example",
feature_group_name="example",
record_identifier_feature_name="example",
event_time_feature_name="example",
role_arn=test["arn"],
feature_definitions=[{
"feature_name": "example",
"feature_type": "String",
}],
online_store_config={
"enable_online_store": True,
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.FeatureGroup("example", new()
{
FeatureGroupName = "example",
RecordIdentifierFeatureName = "example",
EventTimeFeatureName = "example",
RoleArn = test.Arn,
FeatureDefinitions = new[]
{
new Aws.Sagemaker.Inputs.FeatureGroupFeatureDefinitionArgs
{
FeatureName = "example",
FeatureType = "String",
},
},
OnlineStoreConfig = new Aws.Sagemaker.Inputs.FeatureGroupOnlineStoreConfigArgs
{
EnableOnlineStore = true,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewFeatureGroup(ctx, "example", &sagemaker.FeatureGroupArgs{
FeatureGroupName: pulumi.String("example"),
RecordIdentifierFeatureName: pulumi.String("example"),
EventTimeFeatureName: pulumi.String("example"),
RoleArn: pulumi.Any(test.Arn),
FeatureDefinitions: sagemaker.FeatureGroupFeatureDefinitionArray{
&sagemaker.FeatureGroupFeatureDefinitionArgs{
FeatureName: pulumi.String("example"),
FeatureType: pulumi.String("String"),
},
},
OnlineStoreConfig: &sagemaker.FeatureGroupOnlineStoreConfigArgs{
EnableOnlineStore: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.FeatureGroup;
import com.pulumi.aws.sagemaker.FeatureGroupArgs;
import com.pulumi.aws.sagemaker.inputs.FeatureGroupFeatureDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.FeatureGroupOnlineStoreConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new FeatureGroup("example", FeatureGroupArgs.builder()
.featureGroupName("example")
.recordIdentifierFeatureName("example")
.eventTimeFeatureName("example")
.roleArn(test.arn())
.featureDefinitions(FeatureGroupFeatureDefinitionArgs.builder()
.featureName("example")
.featureType("String")
.build())
.onlineStoreConfig(FeatureGroupOnlineStoreConfigArgs.builder()
.enableOnlineStore(true)
.build())
.build());
}
}
resources:
example:
type: aws:sagemaker:FeatureGroup
properties:
featureGroupName: example
recordIdentifierFeatureName: example
eventTimeFeatureName: example
roleArn: ${test.arn}
featureDefinitions:
- featureName: example
featureType: String
onlineStoreConfig:
enableOnlineStore: true

Import

Using pulumi import, import Feature Groups using the name. For example:

$ pulumi import aws:sagemaker/featureGroup:FeatureGroup test_feature_group feature_group-foo

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, eventTimeFeatureName: Output<String>? = null, featureDefinitions: Output<List<FeatureGroupFeatureDefinitionArgs>>? = null, featureGroupName: Output<String>? = null, offlineStoreConfig: Output<FeatureGroupOfflineStoreConfigArgs>? = null, onlineStoreConfig: Output<FeatureGroupOnlineStoreConfigArgs>? = null, recordIdentifierFeatureName: Output<String>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null, throughputConfig: Output<FeatureGroupThroughputConfigArgs>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A free-form description of a Feature Group.

Link copied to clipboard
val eventTimeFeatureName: Output<String>? = null

The name of the feature that stores the EventTime of a Record in a Feature Group.

Link copied to clipboard

A list of Feature names and types. See Feature Definition Below.

Link copied to clipboard
val featureGroupName: Output<String>? = null

The name of the Feature Group. The name must be unique within an AWS Region in an AWS account.

Link copied to clipboard

The Offline Feature Store Configuration. See Offline Store Config Below.

Link copied to clipboard

The Online Feature Store Configuration. See Online Store Config Below.

Link copied to clipboard
val recordIdentifierFeatureName: Output<String>? = null

The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store.

Link copied to clipboard
val roleArn: Output<String>? = null

The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an offline_store_config is provided.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of resource tags for the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJava(): FeatureGroupArgs