module Stratosphere.KinesisFirehose.DeliveryStream.TableCreationConfigurationProperty (
        TableCreationConfigurationProperty(..),
        mkTableCreationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableCreationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-tablecreationconfiguration.html>
    TableCreationConfigurationProperty {TableCreationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-tablecreationconfiguration.html#cfn-kinesisfirehose-deliverystream-tablecreationconfiguration-enabled>
                                        TableCreationConfigurationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (TableCreationConfigurationProperty
-> TableCreationConfigurationProperty -> Bool
(TableCreationConfigurationProperty
 -> TableCreationConfigurationProperty -> Bool)
-> (TableCreationConfigurationProperty
    -> TableCreationConfigurationProperty -> Bool)
-> Eq TableCreationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableCreationConfigurationProperty
-> TableCreationConfigurationProperty -> Bool
== :: TableCreationConfigurationProperty
-> TableCreationConfigurationProperty -> Bool
$c/= :: TableCreationConfigurationProperty
-> TableCreationConfigurationProperty -> Bool
/= :: TableCreationConfigurationProperty
-> TableCreationConfigurationProperty -> Bool
Prelude.Eq, Int -> TableCreationConfigurationProperty -> ShowS
[TableCreationConfigurationProperty] -> ShowS
TableCreationConfigurationProperty -> String
(Int -> TableCreationConfigurationProperty -> ShowS)
-> (TableCreationConfigurationProperty -> String)
-> ([TableCreationConfigurationProperty] -> ShowS)
-> Show TableCreationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableCreationConfigurationProperty -> ShowS
showsPrec :: Int -> TableCreationConfigurationProperty -> ShowS
$cshow :: TableCreationConfigurationProperty -> String
show :: TableCreationConfigurationProperty -> String
$cshowList :: [TableCreationConfigurationProperty] -> ShowS
showList :: [TableCreationConfigurationProperty] -> ShowS
Prelude.Show)
mkTableCreationConfigurationProperty ::
  TableCreationConfigurationProperty
mkTableCreationConfigurationProperty :: TableCreationConfigurationProperty
mkTableCreationConfigurationProperty
  = TableCreationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableCreationConfigurationProperty where
  toResourceProperties :: TableCreationConfigurationProperty -> ResourceProperties
toResourceProperties TableCreationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TableCreationConfigurationProperty -> ()
enabled :: TableCreationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.TableCreationConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled])}
instance JSON.ToJSON TableCreationConfigurationProperty where
  toJSON :: TableCreationConfigurationProperty -> Value
toJSON TableCreationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TableCreationConfigurationProperty -> ()
enabled :: TableCreationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled]))
instance Property "Enabled" TableCreationConfigurationProperty where
  type PropertyType "Enabled" TableCreationConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" TableCreationConfigurationProperty
-> TableCreationConfigurationProperty
-> TableCreationConfigurationProperty
set PropertyType "Enabled" TableCreationConfigurationProperty
newValue TableCreationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TableCreationConfigurationProperty -> ()
enabled :: TableCreationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = TableCreationConfigurationProperty
        {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" TableCreationConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}