module Stratosphere.LakeFormation.DataCellsFilter.RowFilterProperty (
        RowFilterProperty(..), mkRowFilterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RowFilterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datacellsfilter-rowfilter.html>
    RowFilterProperty {RowFilterProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datacellsfilter-rowfilter.html#cfn-lakeformation-datacellsfilter-rowfilter-allrowswildcard>
                       RowFilterProperty -> Maybe Object
allRowsWildcard :: (Prelude.Maybe JSON.Object),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datacellsfilter-rowfilter.html#cfn-lakeformation-datacellsfilter-rowfilter-filterexpression>
                       RowFilterProperty -> Maybe (Value Text)
filterExpression :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RowFilterProperty -> RowFilterProperty -> Bool
(RowFilterProperty -> RowFilterProperty -> Bool)
-> (RowFilterProperty -> RowFilterProperty -> Bool)
-> Eq RowFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RowFilterProperty -> RowFilterProperty -> Bool
== :: RowFilterProperty -> RowFilterProperty -> Bool
$c/= :: RowFilterProperty -> RowFilterProperty -> Bool
/= :: RowFilterProperty -> RowFilterProperty -> Bool
Prelude.Eq, Int -> RowFilterProperty -> ShowS
[RowFilterProperty] -> ShowS
RowFilterProperty -> String
(Int -> RowFilterProperty -> ShowS)
-> (RowFilterProperty -> String)
-> ([RowFilterProperty] -> ShowS)
-> Show RowFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RowFilterProperty -> ShowS
showsPrec :: Int -> RowFilterProperty -> ShowS
$cshow :: RowFilterProperty -> String
show :: RowFilterProperty -> String
$cshowList :: [RowFilterProperty] -> ShowS
showList :: [RowFilterProperty] -> ShowS
Prelude.Show)
mkRowFilterProperty :: RowFilterProperty
mkRowFilterProperty :: RowFilterProperty
mkRowFilterProperty
  = RowFilterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), allRowsWildcard :: Maybe Object
allRowsWildcard = Maybe Object
forall a. Maybe a
Prelude.Nothing,
       filterExpression :: Maybe (Value Text)
filterExpression = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RowFilterProperty where
  toResourceProperties :: RowFilterProperty -> ResourceProperties
toResourceProperties RowFilterProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: RowFilterProperty -> ()
allRowsWildcard :: RowFilterProperty -> Maybe Object
filterExpression :: RowFilterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
filterExpression :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LakeFormation::DataCellsFilter.RowFilter",
         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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllRowsWildcard" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
allRowsWildcard,
                            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..=) Key
"FilterExpression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
filterExpression])}
instance JSON.ToJSON RowFilterProperty where
  toJSON :: RowFilterProperty -> Value
toJSON RowFilterProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: RowFilterProperty -> ()
allRowsWildcard :: RowFilterProperty -> Maybe Object
filterExpression :: RowFilterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
filterExpression :: Maybe (Value 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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllRowsWildcard" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
allRowsWildcard,
               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..=) Key
"FilterExpression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
filterExpression]))
instance Property "AllRowsWildcard" RowFilterProperty where
  type PropertyType "AllRowsWildcard" RowFilterProperty = JSON.Object
  set :: PropertyType "AllRowsWildcard" RowFilterProperty
-> RowFilterProperty -> RowFilterProperty
set PropertyType "AllRowsWildcard" RowFilterProperty
newValue RowFilterProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: RowFilterProperty -> ()
allRowsWildcard :: RowFilterProperty -> Maybe Object
filterExpression :: RowFilterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
filterExpression :: Maybe (Value Text)
..}
    = RowFilterProperty {allRowsWildcard :: Maybe Object
allRowsWildcard = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "AllRowsWildcard" RowFilterProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
filterExpression :: Maybe (Value Text)
haddock_workaround_ :: ()
filterExpression :: Maybe (Value Text)
..}
instance Property "FilterExpression" RowFilterProperty where
  type PropertyType "FilterExpression" RowFilterProperty = Value Prelude.Text
  set :: PropertyType "FilterExpression" RowFilterProperty
-> RowFilterProperty -> RowFilterProperty
set PropertyType "FilterExpression" RowFilterProperty
newValue RowFilterProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: RowFilterProperty -> ()
allRowsWildcard :: RowFilterProperty -> Maybe Object
filterExpression :: RowFilterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
filterExpression :: Maybe (Value Text)
..}
    = RowFilterProperty {filterExpression :: Maybe (Value Text)
filterExpression = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FilterExpression" RowFilterProperty
Value Text
newValue, Maybe Object
()
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
haddock_workaround_ :: ()
allRowsWildcard :: Maybe Object
..}