Skip to content
v2.278.0

FeatureDefinitionProperty Struct ​

A list of features.

You must include FeatureName and FeatureType . Valid feature FeatureType s are Integral , Fractional and String .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const featureDefinitionProperty: sagemaker.CfnFeatureGroup.FeatureDefinitionProperty = {
  featureName: 'featureName',
  featureType: 'featureType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

feature_definition_property = sagemaker.CfnFeatureGroup.FeatureDefinitionProperty(
    feature_name="featureName",
    feature_type="featureType"
)
java
// 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.*;

FeatureDefinitionProperty featureDefinitionProperty = FeatureDefinitionProperty.builder()
        .featureName("featureName")
        .featureType("featureType")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var featureDefinitionProperty = new FeatureDefinitionProperty {
    FeatureName = "featureName",
    FeatureType = "featureType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

featureDefinitionProperty := &FeatureDefinitionProperty{
	FeatureName: jsii.String("featureName"),
	FeatureType: jsii.String("featureType"),
}

Properties ​

featureNamestringfeature_namestrfeatureNameStringFeatureNamestringFeatureName*string required #
The name of a feature.
notes

The type must be a string. FeatureName cannot be any of the following: is_deleted , write_time , api_invocation_time .

The name:

  • Must start with an alphanumeric character.
  • Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.
featureTypestringfeature_typestrfeatureTypeStringFeatureTypestringFeatureType*string required #
The value type of a feature.

Valid values are Integral, Fractional, or String.