Class: AWSCDK::Sagemaker::CfnFeatureGroup::FeatureDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_feature_group.rb

Overview

A list of features.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature_name:, feature_type:) ⇒ FeatureDefinitionProperty

Returns a new instance of FeatureDefinitionProperty.

Parameters:

  • feature_name (String)

    The name of a feature.

  • feature_type (String)

    The value type of a feature.



720
721
722
723
724
725
# File 'sagemaker/cfn_feature_group.rb', line 720

def initialize(feature_name:, feature_type:)
  @feature_name = feature_name
  Jsii::Type.check_type(@feature_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "featureName")
  @feature_type = feature_type
  Jsii::Type.check_type(@feature_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "featureType")
end

Instance Attribute Details

#feature_nameString (readonly)

The name of a feature.

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.


738
739
740
# File 'sagemaker/cfn_feature_group.rb', line 738

def feature_name
  @feature_name
end

#feature_typeString (readonly)

The value type of a feature.

Valid values are Integral, Fractional, or String.



745
746
747
# File 'sagemaker/cfn_feature_group.rb', line 745

def feature_type
  @feature_type
end

Class Method Details

.jsii_propertiesObject



747
748
749
750
751
752
# File 'sagemaker/cfn_feature_group.rb', line 747

def self.jsii_properties
  {
    :feature_name => "featureName",
    :feature_type => "featureType",
  }
end

Instance Method Details

#to_jsiiObject



754
755
756
757
758
759
760
761
# File 'sagemaker/cfn_feature_group.rb', line 754

def to_jsii
  result = {}
  result.merge!({
    "featureName" => @feature_name,
    "featureType" => @feature_type,
  })
  result.compact
end