module Stratosphere.KinesisFirehose.DeliveryStream.DatabaseColumnsProperty (
        DatabaseColumnsProperty(..), mkDatabaseColumnsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DatabaseColumnsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-databasecolumns.html>
    DatabaseColumnsProperty {DatabaseColumnsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-databasecolumns.html#cfn-kinesisfirehose-deliverystream-databasecolumns-exclude>
                             DatabaseColumnsProperty -> Maybe (ValueList Text)
exclude :: (Prelude.Maybe (ValueList Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-databasecolumns.html#cfn-kinesisfirehose-deliverystream-databasecolumns-include>
                             DatabaseColumnsProperty -> Maybe (ValueList Text)
include :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool
(DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool)
-> (DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool)
-> Eq DatabaseColumnsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool
== :: DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool
$c/= :: DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool
/= :: DatabaseColumnsProperty -> DatabaseColumnsProperty -> Bool
Prelude.Eq, Int -> DatabaseColumnsProperty -> ShowS
[DatabaseColumnsProperty] -> ShowS
DatabaseColumnsProperty -> String
(Int -> DatabaseColumnsProperty -> ShowS)
-> (DatabaseColumnsProperty -> String)
-> ([DatabaseColumnsProperty] -> ShowS)
-> Show DatabaseColumnsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DatabaseColumnsProperty -> ShowS
showsPrec :: Int -> DatabaseColumnsProperty -> ShowS
$cshow :: DatabaseColumnsProperty -> String
show :: DatabaseColumnsProperty -> String
$cshowList :: [DatabaseColumnsProperty] -> ShowS
showList :: [DatabaseColumnsProperty] -> ShowS
Prelude.Show)
mkDatabaseColumnsProperty :: DatabaseColumnsProperty
mkDatabaseColumnsProperty :: DatabaseColumnsProperty
mkDatabaseColumnsProperty
  = DatabaseColumnsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exclude :: Maybe (ValueList Text)
exclude = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       include :: Maybe (ValueList Text)
include = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DatabaseColumnsProperty where
  toResourceProperties :: DatabaseColumnsProperty -> ResourceProperties
toResourceProperties DatabaseColumnsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DatabaseColumnsProperty -> ()
exclude :: DatabaseColumnsProperty -> Maybe (ValueList Text)
include :: DatabaseColumnsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.DatabaseColumns",
         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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exclude" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
exclude,
                            Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Include" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
include])}
instance JSON.ToJSON DatabaseColumnsProperty where
  toJSON :: DatabaseColumnsProperty -> Value
toJSON DatabaseColumnsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DatabaseColumnsProperty -> ()
exclude :: DatabaseColumnsProperty -> Maybe (ValueList Text)
include :: DatabaseColumnsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = [(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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exclude" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
exclude,
               Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Include" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
include]))
instance Property "Exclude" DatabaseColumnsProperty where
  type PropertyType "Exclude" DatabaseColumnsProperty = ValueList Prelude.Text
  set :: PropertyType "Exclude" DatabaseColumnsProperty
-> DatabaseColumnsProperty -> DatabaseColumnsProperty
set PropertyType "Exclude" DatabaseColumnsProperty
newValue DatabaseColumnsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DatabaseColumnsProperty -> ()
exclude :: DatabaseColumnsProperty -> Maybe (ValueList Text)
include :: DatabaseColumnsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = DatabaseColumnsProperty {exclude :: Maybe (ValueList Text)
exclude = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exclude" DatabaseColumnsProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
..}
instance Property "Include" DatabaseColumnsProperty where
  type PropertyType "Include" DatabaseColumnsProperty = ValueList Prelude.Text
  set :: PropertyType "Include" DatabaseColumnsProperty
-> DatabaseColumnsProperty -> DatabaseColumnsProperty
set PropertyType "Include" DatabaseColumnsProperty
newValue DatabaseColumnsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DatabaseColumnsProperty -> ()
exclude :: DatabaseColumnsProperty -> Maybe (ValueList Text)
include :: DatabaseColumnsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = DatabaseColumnsProperty {include :: Maybe (ValueList Text)
include = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Include" DatabaseColumnsProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
..}