module Stratosphere.IoTAnalytics.Datastore.ColumnProperty (
        ColumnProperty(..), mkColumnProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColumnProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-column.html>
    ColumnProperty {ColumnProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-column.html#cfn-iotanalytics-datastore-column-name>
                    ColumnProperty -> Value Text
name :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-column.html#cfn-iotanalytics-datastore-column-type>
                    ColumnProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ColumnProperty -> ColumnProperty -> Bool
(ColumnProperty -> ColumnProperty -> Bool)
-> (ColumnProperty -> ColumnProperty -> Bool) -> Eq ColumnProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnProperty -> ColumnProperty -> Bool
== :: ColumnProperty -> ColumnProperty -> Bool
$c/= :: ColumnProperty -> ColumnProperty -> Bool
/= :: ColumnProperty -> ColumnProperty -> Bool
Prelude.Eq, Int -> ColumnProperty -> ShowS
[ColumnProperty] -> ShowS
ColumnProperty -> String
(Int -> ColumnProperty -> ShowS)
-> (ColumnProperty -> String)
-> ([ColumnProperty] -> ShowS)
-> Show ColumnProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnProperty -> ShowS
showsPrec :: Int -> ColumnProperty -> ShowS
$cshow :: ColumnProperty -> String
show :: ColumnProperty -> String
$cshowList :: [ColumnProperty] -> ShowS
showList :: [ColumnProperty] -> ShowS
Prelude.Show)
mkColumnProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ColumnProperty
mkColumnProperty :: Value Text -> Value Text -> ColumnProperty
mkColumnProperty Value Text
name Value Text
type'
  = ColumnProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties ColumnProperty where
  toResourceProperties :: ColumnProperty -> ResourceProperties
toResourceProperties ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
name :: ColumnProperty -> Value Text
type' :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Datastore.Column",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Name" 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
name, Key
"Type" 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
type']}
instance JSON.ToJSON ColumnProperty where
  toJSON :: ColumnProperty -> Value
toJSON ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
name :: ColumnProperty -> Value Text
type' :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name, Key
"Type" 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
type']
instance Property "Name" ColumnProperty where
  type PropertyType "Name" ColumnProperty = Value Prelude.Text
  set :: PropertyType "Name" ColumnProperty
-> ColumnProperty -> ColumnProperty
set PropertyType "Name" ColumnProperty
newValue ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
name :: ColumnProperty -> Value Text
type' :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
    = ColumnProperty {name :: Value Text
name = PropertyType "Name" ColumnProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" ColumnProperty where
  type PropertyType "Type" ColumnProperty = Value Prelude.Text
  set :: PropertyType "Type" ColumnProperty
-> ColumnProperty -> ColumnProperty
set PropertyType "Type" ColumnProperty
newValue ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
name :: ColumnProperty -> Value Text
type' :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
    = ColumnProperty {type' :: Value Text
type' = PropertyType "Type" ColumnProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}