module Stratosphere.Glue.Crawler.LakeFormationConfigurationProperty (
        LakeFormationConfigurationProperty(..),
        mkLakeFormationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LakeFormationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-lakeformationconfiguration.html>
    LakeFormationConfigurationProperty {LakeFormationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-lakeformationconfiguration.html#cfn-glue-crawler-lakeformationconfiguration-accountid>
                                        LakeFormationConfigurationProperty -> Maybe (Value Text)
accountId :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-lakeformationconfiguration.html#cfn-glue-crawler-lakeformationconfiguration-uselakeformationcredentials>
                                        LakeFormationConfigurationProperty -> Maybe (Value Bool)
useLakeFormationCredentials :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
(LakeFormationConfigurationProperty
 -> LakeFormationConfigurationProperty -> Bool)
-> (LakeFormationConfigurationProperty
    -> LakeFormationConfigurationProperty -> Bool)
-> Eq LakeFormationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
== :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
$c/= :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
/= :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
Prelude.Eq, Int -> LakeFormationConfigurationProperty -> ShowS
[LakeFormationConfigurationProperty] -> ShowS
LakeFormationConfigurationProperty -> String
(Int -> LakeFormationConfigurationProperty -> ShowS)
-> (LakeFormationConfigurationProperty -> String)
-> ([LakeFormationConfigurationProperty] -> ShowS)
-> Show LakeFormationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LakeFormationConfigurationProperty -> ShowS
showsPrec :: Int -> LakeFormationConfigurationProperty -> ShowS
$cshow :: LakeFormationConfigurationProperty -> String
show :: LakeFormationConfigurationProperty -> String
$cshowList :: [LakeFormationConfigurationProperty] -> ShowS
showList :: [LakeFormationConfigurationProperty] -> ShowS
Prelude.Show)
mkLakeFormationConfigurationProperty ::
  LakeFormationConfigurationProperty
mkLakeFormationConfigurationProperty :: LakeFormationConfigurationProperty
mkLakeFormationConfigurationProperty
  = LakeFormationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), accountId :: Maybe (Value Text)
accountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       useLakeFormationCredentials :: Maybe (Value Bool)
useLakeFormationCredentials = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LakeFormationConfigurationProperty where
  toResourceProperties :: LakeFormationConfigurationProperty -> ResourceProperties
toResourceProperties LakeFormationConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
accountId :: LakeFormationConfigurationProperty -> Maybe (Value Text)
useLakeFormationCredentials :: LakeFormationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
useLakeFormationCredentials :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::Crawler.LakeFormationConfiguration",
         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
"AccountId" (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)
accountId,
                            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
"UseLakeFormationCredentials"
                              (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)
useLakeFormationCredentials])}
instance JSON.ToJSON LakeFormationConfigurationProperty where
  toJSON :: LakeFormationConfigurationProperty -> Value
toJSON LakeFormationConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
accountId :: LakeFormationConfigurationProperty -> Maybe (Value Text)
useLakeFormationCredentials :: LakeFormationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
useLakeFormationCredentials :: 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 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
"AccountId" (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)
accountId,
               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
"UseLakeFormationCredentials"
                 (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)
useLakeFormationCredentials]))
instance Property "AccountId" LakeFormationConfigurationProperty where
  type PropertyType "AccountId" LakeFormationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "AccountId" LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
set PropertyType "AccountId" LakeFormationConfigurationProperty
newValue LakeFormationConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
accountId :: LakeFormationConfigurationProperty -> Maybe (Value Text)
useLakeFormationCredentials :: LakeFormationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
useLakeFormationCredentials :: Maybe (Value Bool)
..}
    = LakeFormationConfigurationProperty
        {accountId :: Maybe (Value Text)
accountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccountId" LakeFormationConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
useLakeFormationCredentials :: Maybe (Value Bool)
haddock_workaround_ :: ()
useLakeFormationCredentials :: Maybe (Value Bool)
..}
instance Property "UseLakeFormationCredentials" LakeFormationConfigurationProperty where
  type PropertyType "UseLakeFormationCredentials" LakeFormationConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "UseLakeFormationCredentials" LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
set PropertyType
  "UseLakeFormationCredentials" LakeFormationConfigurationProperty
newValue LakeFormationConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
accountId :: LakeFormationConfigurationProperty -> Maybe (Value Text)
useLakeFormationCredentials :: LakeFormationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
useLakeFormationCredentials :: Maybe (Value Bool)
..}
    = LakeFormationConfigurationProperty
        {useLakeFormationCredentials :: Maybe (Value Bool)
useLakeFormationCredentials = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "UseLakeFormationCredentials" LakeFormationConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
..}