module Stratosphere.Cassandra.Table.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-cassandra-table-column.html>
    ColumnProperty {ColumnProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-column.html#cfn-cassandra-table-column-columnname>
                    ColumnProperty -> Value Text
columnName :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-column.html#cfn-cassandra-table-column-columntype>
                    ColumnProperty -> Value Text
columnType :: (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
columnName Value Text
columnType
  = ColumnProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), columnName :: Value Text
columnName = Value Text
columnName,
       columnType :: Value Text
columnType = Value Text
columnType}
instance ToResourceProperties ColumnProperty where
  toResourceProperties :: ColumnProperty -> ResourceProperties
toResourceProperties ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
columnName :: ColumnProperty -> Value Text
columnType :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
columnType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Cassandra::Table.Column",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ColumnName" 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
columnName,
                       Key
"ColumnType" 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
columnType]}
instance JSON.ToJSON ColumnProperty where
  toJSON :: ColumnProperty -> Value
toJSON ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
columnName :: ColumnProperty -> Value Text
columnType :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
columnType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ColumnName" 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
columnName, Key
"ColumnType" 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
columnType]
instance Property "ColumnName" ColumnProperty where
  type PropertyType "ColumnName" ColumnProperty = Value Prelude.Text
  set :: PropertyType "ColumnName" ColumnProperty
-> ColumnProperty -> ColumnProperty
set PropertyType "ColumnName" ColumnProperty
newValue ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
columnName :: ColumnProperty -> Value Text
columnType :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
columnType :: Value Text
..}
    = ColumnProperty {columnName :: Value Text
columnName = PropertyType "ColumnName" ColumnProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
columnType :: Value Text
haddock_workaround_ :: ()
columnType :: Value Text
..}
instance Property "ColumnType" ColumnProperty where
  type PropertyType "ColumnType" ColumnProperty = Value Prelude.Text
  set :: PropertyType "ColumnType" ColumnProperty
-> ColumnProperty -> ColumnProperty
set PropertyType "ColumnType" ColumnProperty
newValue ColumnProperty {()
Value Text
haddock_workaround_ :: ColumnProperty -> ()
columnName :: ColumnProperty -> Value Text
columnType :: ColumnProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
columnType :: Value Text
..}
    = ColumnProperty {columnType :: Value Text
columnType = PropertyType "ColumnType" ColumnProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
columnName :: Value Text
haddock_workaround_ :: ()
columnName :: Value Text
..}