module Stratosphere.LakeFormation.Permissions.TableWithColumnsResourceProperty (
        module Exports, TableWithColumnsResourceProperty(..),
        mkTableWithColumnsResourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.LakeFormation.Permissions.ColumnWildcardProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableWithColumnsResourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html>
    TableWithColumnsResourceProperty {TableWithColumnsResourceProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html#cfn-lakeformation-permissions-tablewithcolumnsresource-catalogid>
                                      TableWithColumnsResourceProperty -> Maybe (Value Text)
catalogId :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html#cfn-lakeformation-permissions-tablewithcolumnsresource-columnnames>
                                      TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnNames :: (Prelude.Maybe (ValueList Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html#cfn-lakeformation-permissions-tablewithcolumnsresource-columnwildcard>
                                      TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
columnWildcard :: (Prelude.Maybe ColumnWildcardProperty),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html#cfn-lakeformation-permissions-tablewithcolumnsresource-databasename>
                                      TableWithColumnsResourceProperty -> Maybe (Value Text)
databaseName :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html#cfn-lakeformation-permissions-tablewithcolumnsresource-name>
                                      TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty -> Bool
(TableWithColumnsResourceProperty
 -> TableWithColumnsResourceProperty -> Bool)
-> (TableWithColumnsResourceProperty
    -> TableWithColumnsResourceProperty -> Bool)
-> Eq TableWithColumnsResourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty -> Bool
== :: TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty -> Bool
$c/= :: TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty -> Bool
/= :: TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty -> Bool
Prelude.Eq, Int -> TableWithColumnsResourceProperty -> ShowS
[TableWithColumnsResourceProperty] -> ShowS
TableWithColumnsResourceProperty -> String
(Int -> TableWithColumnsResourceProperty -> ShowS)
-> (TableWithColumnsResourceProperty -> String)
-> ([TableWithColumnsResourceProperty] -> ShowS)
-> Show TableWithColumnsResourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableWithColumnsResourceProperty -> ShowS
showsPrec :: Int -> TableWithColumnsResourceProperty -> ShowS
$cshow :: TableWithColumnsResourceProperty -> String
show :: TableWithColumnsResourceProperty -> String
$cshowList :: [TableWithColumnsResourceProperty] -> ShowS
showList :: [TableWithColumnsResourceProperty] -> ShowS
Prelude.Show)
mkTableWithColumnsResourceProperty ::
  TableWithColumnsResourceProperty
mkTableWithColumnsResourceProperty :: TableWithColumnsResourceProperty
mkTableWithColumnsResourceProperty
  = TableWithColumnsResourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), catalogId :: Maybe (Value Text)
catalogId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       columnNames :: Maybe (ValueList Text)
columnNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, columnWildcard :: Maybe ColumnWildcardProperty
columnWildcard = Maybe ColumnWildcardProperty
forall a. Maybe a
Prelude.Nothing,
       databaseName :: Maybe (Value Text)
databaseName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableWithColumnsResourceProperty where
  toResourceProperties :: TableWithColumnsResourceProperty -> ResourceProperties
toResourceProperties TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LakeFormation::Permissions.TableWithColumnsResource",
         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 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
"CatalogId" (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)
catalogId,
                            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
"ColumnNames" (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)
columnNames,
                            Key -> ColumnWildcardProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnWildcard" (ColumnWildcardProperty -> (Key, Value))
-> Maybe ColumnWildcardProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnWildcardProperty
columnWildcard,
                            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
"DatabaseName" (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)
databaseName,
                            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
"Name" (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)
name])}
instance JSON.ToJSON TableWithColumnsResourceProperty where
  toJSON :: TableWithColumnsResourceProperty -> Value
toJSON TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: 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 -> 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
"CatalogId" (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)
catalogId,
               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
"ColumnNames" (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)
columnNames,
               Key -> ColumnWildcardProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnWildcard" (ColumnWildcardProperty -> (Key, Value))
-> Maybe ColumnWildcardProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnWildcardProperty
columnWildcard,
               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
"DatabaseName" (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)
databaseName,
               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
"Name" (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)
name]))
instance Property "CatalogId" TableWithColumnsResourceProperty where
  type PropertyType "CatalogId" TableWithColumnsResourceProperty = Value Prelude.Text
  set :: PropertyType "CatalogId" TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
set PropertyType "CatalogId" TableWithColumnsResourceProperty
newValue TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = TableWithColumnsResourceProperty
        {catalogId :: Maybe (Value Text)
catalogId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CatalogId" TableWithColumnsResourceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: ()
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "ColumnNames" TableWithColumnsResourceProperty where
  type PropertyType "ColumnNames" TableWithColumnsResourceProperty = ValueList Prelude.Text
  set :: PropertyType "ColumnNames" TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
set PropertyType "ColumnNames" TableWithColumnsResourceProperty
newValue TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = TableWithColumnsResourceProperty
        {columnNames :: Maybe (ValueList Text)
columnNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnNames" TableWithColumnsResourceProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "ColumnWildcard" TableWithColumnsResourceProperty where
  type PropertyType "ColumnWildcard" TableWithColumnsResourceProperty = ColumnWildcardProperty
  set :: PropertyType "ColumnWildcard" TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
set PropertyType "ColumnWildcard" TableWithColumnsResourceProperty
newValue TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = TableWithColumnsResourceProperty
        {columnWildcard :: Maybe ColumnWildcardProperty
columnWildcard = ColumnWildcardProperty -> Maybe ColumnWildcardProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnWildcard" TableWithColumnsResourceProperty
ColumnWildcardProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "DatabaseName" TableWithColumnsResourceProperty where
  type PropertyType "DatabaseName" TableWithColumnsResourceProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
set PropertyType "DatabaseName" TableWithColumnsResourceProperty
newValue TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = TableWithColumnsResourceProperty
        {databaseName :: Maybe (Value Text)
databaseName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseName" TableWithColumnsResourceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
name :: Maybe (Value Text)
..}
instance Property "Name" TableWithColumnsResourceProperty where
  type PropertyType "Name" TableWithColumnsResourceProperty = Value Prelude.Text
  set :: PropertyType "Name" TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
-> TableWithColumnsResourceProperty
set PropertyType "Name" TableWithColumnsResourceProperty
newValue TableWithColumnsResourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: TableWithColumnsResourceProperty -> ()
catalogId :: TableWithColumnsResourceProperty -> Maybe (Value Text)
columnNames :: TableWithColumnsResourceProperty -> Maybe (ValueList Text)
columnWildcard :: TableWithColumnsResourceProperty -> Maybe ColumnWildcardProperty
databaseName :: TableWithColumnsResourceProperty -> Maybe (Value Text)
name :: TableWithColumnsResourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = TableWithColumnsResourceProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" TableWithColumnsResourceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ColumnWildcardProperty
()
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
haddock_workaround_ :: ()
catalogId :: Maybe (Value Text)
columnNames :: Maybe (ValueList Text)
columnWildcard :: Maybe ColumnWildcardProperty
databaseName :: Maybe (Value Text)
..}