class_docstr: Feature definition.
  
  This instantiates a Feature Definition object where FeatureDefinition is a subclass of Config.
  
  Attributes:
      feature_name (str): The name of the feature
      feature_type (FeatureTypeEnum): The type of the feature
      collection_type (CollectionType): The type of collection for the feature
class_docstr_tok: ["Feature","definition",".","This","instantiates","a","Feature","Definition","object","where","FeatureDefinition","is","a","subclass","of","Config",".","Attributes",":","feature_name","(","str",")",":","The","name","of","the","feature","feature_type","(","FeatureTypeEnum",")",":","The","type","of","the","feature","collection_type","(","CollectionType",")",":","The","type","of","collection","for","the","feature"]
docstr: Construct a dictionary based on each attribute.
docstr_tok: ["Construct","a","dictionary","based","on","each","attribute","."]
code: def to_dict(self) -> Dict[str, Any]:
      """Construct a dictionary based on each attribute."""
  
      return Config.construct_dict(
          FeatureName=self.feature_name,
          FeatureType=self.feature_type.value,
          CollectionType=(
              self.collection_type.collection_type.value
              if self.collection_type
              else None
          ),
          CollectionConfig=(
              self.collection_type.collection_config
              if self.collection_type
              else None
          ),
      )
  
imports: from __future__ import absolute_import
  from enum import Enum
  from typing import Dict, Any
  import attr
  from sagemaker.feature_store.inputs import Config
label_desc: Use image node_id 1 for calling the FeatureDefinition obj's underlying member method code with example usage: obj.to_dict() and returns: Config