module Stratosphere.SageMaker.FeatureGroup.FeatureDefinitionProperty (
        FeatureDefinitionProperty(..), mkFeatureDefinitionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FeatureDefinitionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-featuredefinition.html>
    FeatureDefinitionProperty {FeatureDefinitionProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-featuredefinition.html#cfn-sagemaker-featuregroup-featuredefinition-featurename>
                               FeatureDefinitionProperty -> Value Text
featureName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-featuredefinition.html#cfn-sagemaker-featuregroup-featuredefinition-featuretype>
                               FeatureDefinitionProperty -> Value Text
featureType :: (Value Prelude.Text)}
  deriving stock (FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool
(FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool)
-> (FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool)
-> Eq FeatureDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool
== :: FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool
$c/= :: FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool
/= :: FeatureDefinitionProperty -> FeatureDefinitionProperty -> Bool
Prelude.Eq, Int -> FeatureDefinitionProperty -> ShowS
[FeatureDefinitionProperty] -> ShowS
FeatureDefinitionProperty -> String
(Int -> FeatureDefinitionProperty -> ShowS)
-> (FeatureDefinitionProperty -> String)
-> ([FeatureDefinitionProperty] -> ShowS)
-> Show FeatureDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FeatureDefinitionProperty -> ShowS
showsPrec :: Int -> FeatureDefinitionProperty -> ShowS
$cshow :: FeatureDefinitionProperty -> String
show :: FeatureDefinitionProperty -> String
$cshowList :: [FeatureDefinitionProperty] -> ShowS
showList :: [FeatureDefinitionProperty] -> ShowS
Prelude.Show)
mkFeatureDefinitionProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> FeatureDefinitionProperty
mkFeatureDefinitionProperty :: Value Text -> Value Text -> FeatureDefinitionProperty
mkFeatureDefinitionProperty Value Text
featureName Value Text
featureType
  = FeatureDefinitionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), featureName :: Value Text
featureName = Value Text
featureName,
       featureType :: Value Text
featureType = Value Text
featureType}
instance ToResourceProperties FeatureDefinitionProperty where
  toResourceProperties :: FeatureDefinitionProperty -> ResourceProperties
toResourceProperties FeatureDefinitionProperty {()
Value Text
haddock_workaround_ :: FeatureDefinitionProperty -> ()
featureName :: FeatureDefinitionProperty -> Value Text
featureType :: FeatureDefinitionProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Value Text
featureType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::FeatureGroup.FeatureDefinition",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FeatureName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
featureName,
                       Key
"FeatureType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
featureType]}
instance JSON.ToJSON FeatureDefinitionProperty where
  toJSON :: FeatureDefinitionProperty -> Value
toJSON FeatureDefinitionProperty {()
Value Text
haddock_workaround_ :: FeatureDefinitionProperty -> ()
featureName :: FeatureDefinitionProperty -> Value Text
featureType :: FeatureDefinitionProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Value Text
featureType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FeatureName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
featureName,
         Key
"FeatureType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
featureType]
instance Property "FeatureName" FeatureDefinitionProperty where
  type PropertyType "FeatureName" FeatureDefinitionProperty = Value Prelude.Text
  set :: PropertyType "FeatureName" FeatureDefinitionProperty
-> FeatureDefinitionProperty -> FeatureDefinitionProperty
set PropertyType "FeatureName" FeatureDefinitionProperty
newValue FeatureDefinitionProperty {()
Value Text
haddock_workaround_ :: FeatureDefinitionProperty -> ()
featureName :: FeatureDefinitionProperty -> Value Text
featureType :: FeatureDefinitionProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Value Text
featureType :: Value Text
..}
    = FeatureDefinitionProperty {featureName :: Value Text
featureName = PropertyType "FeatureName" FeatureDefinitionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
featureType :: Value Text
haddock_workaround_ :: ()
featureType :: Value Text
..}
instance Property "FeatureType" FeatureDefinitionProperty where
  type PropertyType "FeatureType" FeatureDefinitionProperty = Value Prelude.Text
  set :: PropertyType "FeatureType" FeatureDefinitionProperty
-> FeatureDefinitionProperty -> FeatureDefinitionProperty
set PropertyType "FeatureType" FeatureDefinitionProperty
newValue FeatureDefinitionProperty {()
Value Text
haddock_workaround_ :: FeatureDefinitionProperty -> ()
featureName :: FeatureDefinitionProperty -> Value Text
featureType :: FeatureDefinitionProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Value Text
featureType :: Value Text
..}
    = FeatureDefinitionProperty {featureType :: Value Text
featureType = PropertyType "FeatureType" FeatureDefinitionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
featureName :: Value Text
haddock_workaround_ :: ()
featureName :: Value Text
..}